mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
remove repeated type conversion
This commit is contained in:
parent
6e2249b784
commit
c12e6dbb80
@ -155,7 +155,7 @@ func (f *featureGate) Set(value string) error {
|
||||
}
|
||||
arr := strings.SplitN(s, "=", 2)
|
||||
k := Feature(strings.TrimSpace(arr[0]))
|
||||
_, ok := known[Feature(k)]
|
||||
_, ok := known[k]
|
||||
if !ok {
|
||||
return fmt.Errorf("unrecognized key: %s", k)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user