[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:
Horst Gutmann
2023-03-29 10:42:59 +02:00
committed by GitHub
parent 972a9c5957
commit 64f074ca8d
18 changed files with 181 additions and 15 deletions
@@ -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(&current.ETag, &current.Version, &current.UpdatedAt, &current.Size)
}
if err == nil {
//nolint:sqlclosecheck
err = rows.Close()
}
return current, err