format code

pull/169/head
weisenhuang 5 years ago
parent 4b760a9269
commit 588e4c0861
  1. 2
      tool/kratos/tool.go

@ -174,7 +174,7 @@ func (t Tool) updated() bool {
} }
func (t Tool) toolPath() string { 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(gobin, t.Alias)
} }
return filepath.Join(gopath(), "bin", t.Alias) return filepath.Join(gopath(), "bin", t.Alias)

Loading…
Cancel
Save