Use filepath.Join

in order to get correct results on windows, too.
This commit is contained in:
Ingo Oeser 2015-08-22 23:08:05 +02:00
parent 8b627dab53
commit 4bf421d848

View File

@ -49,7 +49,7 @@ func GetChangedGoFiles() (result []string) {
resultLines := strings.Split(gitDiff, "\n")
for _, filename := range resultLines {
if strings.HasSuffix(filename, ".go") {
result = append(result, absolutePath+"/"+filename)
result = append(result, filepath.Join(absolutePath, filename))
}
}
return result