Fix linter

This commit is contained in:
Miguel de la Cruz 2020-02-29 00:39:26 +01:00
parent 167dc7aae8
commit d7a4b25950
2 changed files with 6 additions and 6 deletions

View file

@ -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,
} }
} }

View file

@ -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)