[v9.3.x] CI: Update golangci-lint to 1.51.2 for Go 1.20 compatibility (#65506)
[v9.3.x] Update golangci-lint to 1.51.2 for Go 1.20 compatibility
This commit is contained in:
@@ -506,6 +506,7 @@ func (s *sqlObjectServer) fillCreationInfo(ctx context.Context, tx *session.Sess
|
||||
err = rows.Scan(&createdAt, &createdBy)
|
||||
}
|
||||
if err == nil {
|
||||
//nolint:sqlclosecheck
|
||||
err = rows.Close()
|
||||
}
|
||||
}
|
||||
@@ -526,6 +527,7 @@ func (s *sqlObjectServer) selectForUpdate(ctx context.Context, tx *session.Sessi
|
||||
err = rows.Scan(¤t.ETag, ¤t.Version, ¤t.UpdatedAt, ¤t.Size)
|
||||
}
|
||||
if err == nil {
|
||||
//nolint:sqlclosecheck
|
||||
err = rows.Close()
|
||||
}
|
||||
return current, err
|
||||
|
||||
Reference in New Issue
Block a user