Some fixes suggested by golangci-lint

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-10-07 08:53:48 +02:00
parent 7e54c26cb8
commit 47bd2be882
11 changed files with 86 additions and 49 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ import (
// GetCmd is the command line interface for get kapow data operation
var GetCmd = &cobra.Command{
Use: "get [flags] resource",
Short: "Retrive a Kapow! resource",
Long: "Retrive a Kapow! resource for the current request",
Short: "Retrieve a Kapow! resource",
Long: "Retrieve a Kapow! resource for the current request",
Args: cobra.ExactArgs(1),
PreRunE: handlerIDRequired,
Run: func(cmd *cobra.Command, args []string) {
-1
View File
@@ -21,5 +21,4 @@ func handlerIDRequired(cmd *cobra.Command, args []string) error {
return errors.New("--handler or KAPOW_HANDLER_ID is mandatory")
}
return nil
}