chore: update code format. (#628)

This commit is contained in:
Bo-Yi Wu
2021-04-15 19:49:17 +08:00
committed by GitHub
parent 7e087de6e6
commit afd9ff889e
68 changed files with 390 additions and 414 deletions

View File

@@ -37,7 +37,7 @@ func PluginCommand(c *cli.Context) error {
panic(err)
}
var plugin = c.String("plugin")
plugin := c.String("plugin")
if len(plugin) == 0 {
return errors.New("missing plugin")
}
@@ -113,7 +113,7 @@ func getCommand(arg string) (string, bool, error) {
return abs, false, nil
}
var defaultErr = errors.New("invalid plugin value " + arg)
defaultErr := errors.New("invalid plugin value " + arg)
if strings.HasPrefix(arg, "http") {
items := strings.Split(arg, "/")
if len(items) == 0 {