Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9393df4

Browse files
committedSep 21, 2020
Fix issue when initializing new config file if one already exists
1 parent eb82eb8 commit 9393df4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎configuration/configuration.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,7 @@ func FindConfigFile() string {
198198
}
199199

200200
if configFile != "" {
201-
if fi, err := os.Stat(configFile); err == nil {
202-
if fi.IsDir() {
203-
return configFile
204-
}
205-
return filepath.Dir(configFile)
206-
}
201+
return filepath.Dir(configFile)
207202
}
208203

209204
return searchCwdForConfig()

0 commit comments

Comments
 (0)
Please sign in to comment.