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 (
|
import (
|
||||||
"git.ctrlz.es/mgdelacroix/campaigner/config"
|
"git.ctrlz.es/mgdelacroix/campaigner/config"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ func TokenSetJiraCmd() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "jira",
|
Use: "jira",
|
||||||
Short: "Sets the value of the jira token",
|
Short: "Sets the value of the jira token",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
RunE: tokenSetJiraCmdF,
|
RunE: tokenSetJiraCmdF,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@ func TokenSetGithubCmd() *cobra.Command {
|
||||||
return &cobra.Command{
|
return &cobra.Command{
|
||||||
Use: "github",
|
Use: "github",
|
||||||
Short: "Sets the value of the github token",
|
Short: "Sets the value of the github token",
|
||||||
Args: cobra.ExactArgs(1),
|
Args: cobra.ExactArgs(1),
|
||||||
RunE: tokenSetGithubCmdF,
|
RunE: tokenSetGithubCmdF,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ func ReadConfig() (*Config, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := os.Stat(configPath); err != nil {
|
if _, err := os.Stat(configPath); err != nil {
|
||||||
return &Config{}, nil
|
return &Config{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fileContents, err := ioutil.ReadFile(configPath)
|
fileContents, err := ioutil.ReadFile(configPath)
|
||||||
|
|
Loading…
Reference in a new issue