Use filepath.Join
in order to get correct results on windows, too.
This commit is contained in:
parent
8b627dab53
commit
4bf421d848
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue