Skip to content

Commit

Permalink
🎨 remove space at line 341 main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuliyey committed May 30, 2021
1 parent 15e4e36 commit 24617bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,7 @@ func getParamsTOML(binPath string, dir string) (string, string) {
os.Exit(1) // exit immediately if config file provided but it is unable to read it
}

bin := viper.Get("bin") // read custom binary location

bin := viper.Get("bin") // read custom binary location
if binPath == lib.ConvertExecutableExt(defaultBin) && bin != nil { // if the bin path is the same as the default binary path and if the custom binary is provided in the toml file (use it)
binPath = os.ExpandEnv(bin.(string))
}
Expand Down

0 comments on commit 24617bb

Please sign in to comment.