Skip to content

Commit 392f7cf

Browse files
committedFeb 13, 2019
Consistent usage of paths helper
1 parent f9bf3a8 commit 392f7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎commands/config/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func runInitCommand(cmd *cobra.Command, args []string) {
6666
filepath = commands.Config.ConfigFile.String()
6767
}
6868

69-
err := os.MkdirAll(commands.Config.ConfigFile.Parent().String(), 0766)
69+
err := commands.Config.ConfigFile.Parent().MkdirAll()
7070
if err != nil {
7171
formatter.PrintError(err, "Cannot create config file.")
7272
os.Exit(commands.ErrGeneric)

0 commit comments

Comments
 (0)
Please sign in to comment.