Fix linter
This commit is contained in:
parent
167dc7aae8
commit
d7a4b25950
2 changed files with 6 additions and 6 deletions
10
cmd/token.go
10
cmd/token.go
|
@ -2,7 +2,7 @@ package cmd
|
|||
|
||||
import (
|
||||
"git.ctrlz.es/mgdelacroix/campaigner/config"
|
||||
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
@ -10,8 +10,8 @@ func TokenSetJiraCmd() *cobra.Command {
|
|||
return &cobra.Command{
|
||||
Use: "jira",
|
||||
Short: "Sets the value of the jira token",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: tokenSetJiraCmdF,
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: tokenSetJiraCmdF,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,8 +19,8 @@ func TokenSetGithubCmd() *cobra.Command {
|
|||
return &cobra.Command{
|
||||
Use: "github",
|
||||
Short: "Sets the value of the github token",
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: tokenSetGithubCmdF,
|
||||
Args: cobra.ExactArgs(1),
|
||||
RunE: tokenSetGithubCmdF,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ func ReadConfig() (*Config, error) {
|
|||
}
|
||||
|
||||
if _, err := os.Stat(configPath); err != nil {
|
||||
return &Config{}, nil
|
||||
return &Config{}, nil
|
||||
}
|
||||
|
||||
fileContents, err := ioutil.ReadFile(configPath)
|
||||
|
|
Loading…
Reference in a new issue