From ae5e94e822f2ffe9ac67f5c53b4d096820aa3a52 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Fri, 7 Feb 2025 16:34:24 +0100 Subject: [PATCH] chore: enable increment-decrement from revive Signed-off-by: Matthieu MOREL --- .golangci.yaml | 1 - pkg/util/csi/volume_snapshot.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 13a0bd1224..cbe373c0a0 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -257,7 +257,6 @@ linters-settings: - name: errorf disabled: true - name: increment-decrement - disabled: true - name: indent-error-flow disabled: true - name: range diff --git a/pkg/util/csi/volume_snapshot.go b/pkg/util/csi/volume_snapshot.go index bcb656e3c4..2cdc7a869d 100644 --- a/pkg/util/csi/volume_snapshot.go +++ b/pkg/util/csi/volume_snapshot.go @@ -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