Skip to content

Commit

Permalink
remove inefficient assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Ojea committed Nov 17, 2021
1 parent 0019f98 commit e1821c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion staging/src/k8s.io/kubectl/pkg/cmd/taint/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ func deleteTaints(taintsToRemove []corev1.Taint, newTaints *[]corev1.Taint) ([]e
allErrs := []error{}
var removed bool
for _, taintToRemove := range taintsToRemove {
removed = false
if len(taintToRemove.Effect) > 0 {
*newTaints, removed = deleteTaint(*newTaints, &taintToRemove)
} else {
Expand Down

0 comments on commit e1821c1

Please sign in to comment.