Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
hariso committed Aug 31, 2023
1 parent 820dffb commit 9eb824f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions columntypes/columntypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func GetColumnTypes(ctx context.Context, db *sqlx.DB, table, schema string) (map
if err != nil {
return nil, fmt.Errorf("select column types %q, %v: %w", query, args, err)
}
defer rows.Close()

columnTypes := make(map[string]string)
for rows.Next() {
Expand Down
1 change: 1 addition & 0 deletions source/iterator/iterator.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ func (iter *Iterator) latestSnapshotValue(ctx context.Context) (any, error) {
if err != nil {
return nil, fmt.Errorf("execute select latest snapshot value query %q: %w", query, err)
}
defer rows.Close()

for rows.Next() {
if err = rows.Scan(&latestSnapshotValue); err != nil {
Expand Down

0 comments on commit 9eb824f

Please sign in to comment.