Commit c12e6dbb authored by dahefanteng's avatar dahefanteng

remove repeated type conversion

parent 6e2249b7
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment