remove repeated type conversion
Kubernetes-commit: c12e6dbb80282fa0859a483883bf15b7ba85f01c
This commit is contained in:
parent
8a357aef54
commit
2a250d73b1
|
@ -157,7 +157,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