Browse Source

fix #2581

tags/v1.8.3^2
astaxie 2 years ago
parent
commit
ffbe29ae22
1 changed files with 0 additions and 3 deletions
  1. +0
    -3
      utils/utils.go

+ 0
- 3
utils/utils.go View File

@@ -60,9 +60,6 @@ func GetGOPATHs() []string {

// IsInGOPATH checks whether the path is inside of any GOPATH or not
func IsInGOPATH(thePath string) bool {
if runtime.GOOS == "windows" {
thePath = filepath.ToSlash(thePath)
}
for _, gopath := range GetGOPATHs() {
if strings.Contains(thePath, filepath.Join(gopath, "src")) {
return true


Loading…
Cancel
Save