Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-cbon committed Jun 25, 2016
1 parent 9aa263f commit 707abef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,15 +579,15 @@ func quickMake(c *cli.Context) error {
}

func getBinPath() (string, error) {
var err error
wd := ""
var err error
wd := ""
if filepath.Base(os.Args[0]) == "main" { // go run ...
wd, err = os.Getwd()
} else {
bin, err := exec.LookPath(os.Args[0])
if err == nil {
wd = filepath.Dir(bin)
}
bin, err := exec.LookPath(os.Args[0])
if err == nil {
wd = filepath.Dir(bin)
}
}
return wd, err
}

0 comments on commit 707abef

Please sign in to comment.