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 {
60 60
 
61 61
 // IsInGOPATH checks whether the path is inside of any GOPATH or not
62 62
 func IsInGOPATH(thePath string) bool {
63
-	if runtime.GOOS == "windows" {
64
-		thePath = filepath.ToSlash(thePath)
65
-	}
66 63
 	for _, gopath := range GetGOPATHs() {
67 64
 		if strings.Contains(thePath, filepath.Join(gopath, "src")) {
68 65
 			return true

Loading…
Cancel
Save