diff --git a/cmd/gopath.go b/cmd/gopath.go index 9a32398ee..8fe40064e 100644 --- a/cmd/gopath.go +++ b/cmd/gopath.go @@ -257,8 +257,8 @@ func genNewGoPath(ctx *cli.Context, isTest bool) { continue } - if (!isExistP && (len(pkg.Value) > 0 || ctx.Bool("remote"))) || - !com.IsDir(filepath.Join(installGopath, pkg.ImportPath)) { + if !isExistP && ((len(pkg.Value) > 0 || ctx.Bool("remote")) || + !com.IsDir(filepath.Join(installGopath, pkg.ImportPath))) { log.Log("Linking %s", name+suf) err = autoLink(oldPath, newPath) if err != nil {