diff --git a/.golangci.yaml b/.golangci.yaml index 13a0bd122..cbe373c0a 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 bcb656e3c..2cdc7a869 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