fix golint

This commit is contained in:
JieJhih Jhang
2019-05-03 14:31:51 +08:00
parent 6a23a6278f
commit 21e4f0039e
4 changed files with 9 additions and 12 deletions

View File

@@ -236,10 +236,7 @@ func (o *Options) Complete() error {
return err
}
if err := utilfeature.DefaultMutableFeatureGate.SetFromMap(o.config.FeatureGates); err != nil {
return err
}
return nil
return utilfeature.DefaultMutableFeatureGate.SetFromMap(o.config.FeatureGates)
}
// Creates a new filesystem watcher and adds watches for the config file.