From 4b760a9269c596d06ca39a508f573ed7dcd07116 Mon Sep 17 00:00:00 2001 From: weisenhuang Date: Fri, 21 Jun 2019 16:27:09 +0800 Subject: [PATCH] m --- tool/kratos/tool.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tool/kratos/tool.go b/tool/kratos/tool.go index 60bed2126..738ee06a2 100644 --- a/tool/kratos/tool.go +++ b/tool/kratos/tool.go @@ -176,9 +176,8 @@ func (t Tool) updated() bool { func (t Tool) toolPath() string { if gobin := os.Getenv("GOBIN");len(gobin) > 0 { return filepath.Join(gobin, t.Alias) - }else{ - return filepath.Join(gopath(), "bin", t.Alias) } + return filepath.Join(gopath(), "bin", t.Alias) } func (t Tool) installed() bool {