Skip to content

Commit

Permalink
chore: enable increment-decrement from revive
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu MOREL <[email protected]>
  • Loading branch information
mmorel-35 committed Feb 7, 2025
1 parent f56698e commit ae5e94e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ linters-settings:
- name: errorf
disabled: true
- name: increment-decrement
disabled: true
- name: indent-error-flow
disabled: true
- name: range
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/csi/volume_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae5e94e

Please sign in to comment.