mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-22 10:27:56 +00:00
Adds ineffassign to GO linter script.
Changes: - Enables ineffassign check in the verify scripts. - Fixes lint errs.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user