diff --git a/v1/plugin/plugin.go b/v1/plugin/plugin.go index 6e58292c..2a4873f7 100644 --- a/v1/plugin/plugin.go +++ b/v1/plugin/plugin.go @@ -774,8 +774,7 @@ func printConfigPolicy(p *pluginProxy, conf Config) error { w.Flush() if requiredConfigs != "" { requiredConfigs += "! Please provide config in form of: -config '{\"key\":\"kelly\", \"spirit-animal\":\"coatimundi\"}'\n" - err := fmt.Errorf("%s", requiredConfigs) - return err + return fmt.Errorf("%s", requiredConfigs) } return nil