remove repeated type conversion

This commit is contained in:
dahefanteng 2017-10-09 10:03:24 +08:00
parent 6e2249b784
commit c12e6dbb80

View File

@ -155,7 +155,7 @@ func (f *featureGate) Set(value string) error {
} }
arr := strings.SplitN(s, "=", 2) arr := strings.SplitN(s, "=", 2)
k := Feature(strings.TrimSpace(arr[0])) k := Feature(strings.TrimSpace(arr[0]))
_, ok := known[Feature(k)] _, ok := known[k]
if !ok { if !ok {
return fmt.Errorf("unrecognized key: %s", k) return fmt.Errorf("unrecognized key: %s", k)
} }