Adds ineffassign to GO linter script.

Changes:
 - Enables ineffassign check in the verify scripts.
 - Fixes lint errs.
This commit is contained in:
Supriya Premkumar
2021-02-21 15:07:06 -08:00
parent 6404eda8de
commit e52e5e486c
10 changed files with 13 additions and 16 deletions

View File

@@ -362,6 +362,7 @@ func Convert_autoscaling_HorizontalPodAutoscaler_To_v1_HorizontalPodAutoscaler(i
}
// copy before mutating
if !copiedAnnotations {
//nolint:ineffassign
copiedAnnotations = true
out.Annotations = autoscaling.DeepCopyStringMap(out.Annotations)
}

View File

@@ -299,6 +299,7 @@ func Convert_autoscaling_HorizontalPodAutoscaler_To_v2beta1_HorizontalPodAutosca
}
// copy before mutating
if !copiedAnnotations {
//nolint:ineffassign
copiedAnnotations = true
out.Annotations = autoscaling.DeepCopyStringMap(out.Annotations)
}