Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
litsynp committed Oct 1, 2024
1 parent 1aec937 commit 461aae0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/migrateuuids/uuidmigrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,12 @@ func MigrateUUID(tx *database.Tx, options MigrateOptions) *pnd.AppError {
}
rowData = append(rowData, row)
}
rows.Close()
err = rows.Close()
if err != nil {
return pnd.ErrUnknown(
fmt.Errorf("error closing rows from table %s due to %w", target.Table, err),
)
}

for _, row := range rowData {
if !options.Force && row.UUID != nil {
Expand Down

0 comments on commit 461aae0

Please sign in to comment.