Skip to content

Commit

Permalink
Fix read config from the file system (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jul 6, 2023
1 parent 78b006b commit 8fbeca6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands/utils/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ func getConfigFileContent(client vcsclient.VcsClient, clientInfo *ClientInfo) (c
if err != nil && !missingConfigErr {
return nil, err
}

// Read the config from the current working dir
if len(configFileContent) == 0 && err == nil {
if len(configFileContent) == 0 {
configFileContent, err = ReadConfigFromFileSystem(osFrogbotConfigPath)
}
return
Expand Down

0 comments on commit 8fbeca6

Please sign in to comment.