[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
@@ -151,6 +151,7 @@ func (m dashboardPermissionsMigrator) migratePermissions(dashboards []dashboard,
return fmt.Errorf("failed to bulk-create roles: %w", err)
}
//nolint:gosimple // fixed in main
for i := range createdRoles {
allRoles = append(allRoles, createdRoles[i])
}