Skip to content

Commit a79a420

Browse files
committed
Corrected variable assignment for config file, which was preventing it from persisting on the global variable
1 parent 243f304 commit a79a420

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/root.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ func Execute() {
3232
func init() {
3333
cobra.OnInitialize(initConfig)
3434

35-
cfgFile, err := util.GetConfigPath()
35+
var err error
36+
cfgFile, err = util.GetConfigPath()
3637
if err != nil {
3738
fmt.Println(err)
3839
os.Exit(1)

0 commit comments

Comments
 (0)