mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 14:11:14 +00:00
kubeadm: fix gocritic lint errors
This commit is contained in:
@@ -123,7 +123,7 @@ func InteractivelyConfirmAction(action, question string, r io.Reader) error {
|
||||
return errors.Wrap(err, "couldn't read from standard input")
|
||||
}
|
||||
answer := scanner.Text()
|
||||
if strings.ToLower(answer) == "y" || strings.ToLower(answer) == "yes" {
|
||||
if strings.EqualFold(answer, "y") || strings.EqualFold(answer, "yes") {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user