Merge pull request #8671 from mmorel-35/revive/increment-decrement
Run the E2E test on kind / build (push) Failing after 5m36s
Run the E2E test on kind / setup-test-matrix (push) Successful in 3s
Run the E2E test on kind / run-e2e-test (push) Has been skipped
Main CI / Build (push) Failing after 34s
Close stale issues and PRs / stale (push) Successful in 8s
Trivy Nightly Scan / Trivy nightly scan (velero, main) (push) Failing after 1m1s
Trivy Nightly Scan / Trivy nightly scan (velero-restore-helper, main) (push) Failing after 1m0s

chore: enable increment-decrement from revive
This commit is contained in:
Xun Jiang/Bruce Jiang
2025-02-08 10:55:34 +08:00
committed by GitHub
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -257,7 +257,6 @@ linters-settings:
- name: errorf
disabled: true
- name: increment-decrement
disabled: true
- name: indent-error-flow
disabled: true
- name: range
+1 -1
View File
@@ -425,7 +425,7 @@ func GetVolumeSnapshotClassForStorageClass(
for _, sc := range snapshotClasses.Items {
_, hasLabelSelector := sc.Labels[velerov1api.VolumeSnapshotClassSelectorLabel]
if sc.Driver == provisioner {
n += 1
n++
vsClass = sc
if hasLabelSelector {
return &sc, nil