CI: Bump golangci-lint to 2.0.2 (#103572)

This commit is contained in:
Mariell Hoversholm
2025-04-10 14:42:23 +02:00
committed by GitHub
parent b58b6e828e
commit 757be6365a
291 changed files with 1948 additions and 1835 deletions
@@ -361,9 +361,12 @@ func (ss *sqlStore) UpdateSnapshotResources(ctx context.Context, snapshotUid str
errorIds := make(map[errId][]any)
for _, r := range resources {
if r.Status == cloudmigration.ItemStatusOK {
switch r.Status {
case cloudmigration.ItemStatusPending:
// Do nothing. A pending item should not be updated, as it is still in progress.
case cloudmigration.ItemStatusOK:
okIds = append(okIds, r.RefID)
} else if r.Status == cloudmigration.ItemStatusError {
case cloudmigration.ItemStatusError:
key := errId{errCode: r.ErrorCode, errStr: r.Error}
if ids, ok := errorIds[key]; ok {
errorIds[key] = append(ids, r.RefID)