mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #114901 from SataQiu/fix-lint-error-20230108
Fix gocritic lint errors for cmd/kubeadm/*
This commit is contained in:
commit
2b69bec35d
@ -13,7 +13,7 @@ issues:
|
|||||||
- ineffassign
|
- ineffassign
|
||||||
# TODO(oscr) Remove these excluded directories and fix findings. Due to large amount of findings in different components
|
# TODO(oscr) Remove these excluded directories and fix findings. Due to large amount of findings in different components
|
||||||
# with different owners it's hard to fix everything in a single pr. This will therefore be done in multiple prs.
|
# with different owners it's hard to fix everything in a single pr. This will therefore be done in multiple prs.
|
||||||
- path: (pkg/volume/*|test/*|cmd/kubeadm/*|azure/*|pkg/cmd/wait*|request/bearertoken/*|metrics/*|filters/*)
|
- path: (pkg/volume/*|test/*|azure/*|pkg/cmd/wait*|request/bearertoken/*|metrics/*|filters/*)
|
||||||
linters:
|
linters:
|
||||||
- gocritic
|
- gocritic
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ func InteractivelyConfirmAction(action, question string, r io.Reader) error {
|
|||||||
return errors.Wrap(err, "couldn't read from standard input")
|
return errors.Wrap(err, "couldn't read from standard input")
|
||||||
}
|
}
|
||||||
answer := scanner.Text()
|
answer := scanner.Text()
|
||||||
if strings.ToLower(answer) == "y" || strings.ToLower(answer) == "yes" {
|
if strings.EqualFold(answer, "y") || strings.EqualFold(answer, "yes") {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user