1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00

format code

This commit is contained in:
weisenhuang 2019-06-21 20:48:09 +08:00
parent 4b760a9269
commit 588e4c0861

View File

@ -174,7 +174,7 @@ func (t Tool) updated() bool {
}
func (t Tool) toolPath() string {
if gobin := os.Getenv("GOBIN");len(gobin) > 0 {
if gobin := os.Getenv("GOBIN"); len(gobin) > 0 {
return filepath.Join(gobin, t.Alias)
}
return filepath.Join(gopath(), "bin", t.Alias)