Skip to content

Commit

Permalink
Corrected variable assignment for config file, which was preventing i…
Browse files Browse the repository at this point in the history
…t from persisting on the global variable
  • Loading branch information
Xemdo committed Jul 11, 2023
1 parent 243f304 commit a79a420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ func Execute() {
func init() {
cobra.OnInitialize(initConfig)

cfgFile, err := util.GetConfigPath()
var err error
cfgFile, err = util.GetConfigPath()
if err != nil {
fmt.Println(err)
os.Exit(1)
Expand Down

0 comments on commit a79a420

Please sign in to comment.