Skip to content

Commit

Permalink
fix: Fix rowserrcheck lint errors (#7924)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec authored Feb 18, 2022
1 parent 9fb3cb7 commit 5b6bfb6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions persist/sqldb/backfill_nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ func (s backfillNodes) apply(session sqlbuilder.Database) (err error) {
}()

for rs.Next() {
if err := rs.Err(); err != nil {
return err
}
workflow := ""
err := rs.Scan(&workflow)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions persist/sqldb/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ func (m migrate) Exec(ctx context.Context) (err error) {
if err != nil {
return err
}
} else if err := rs.Err(); err != nil {
return err
}
}
dbType := dbTypeFor(m.session)
Expand Down

0 comments on commit 5b6bfb6

Please sign in to comment.