remove repeated type conversion

Kubernetes-commit: c12e6dbb80282fa0859a483883bf15b7ba85f01c
This commit is contained in:
dahefanteng 2017-10-09 10:03:24 +08:00 committed by Kubernetes Publisher
parent 8a357aef54
commit 2a250d73b1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}