Skip to content

Commit

Permalink
Merge pull request #148 from Songmu/to-slash
Browse files Browse the repository at this point in the history
Use filepath.ToSlash for commonize test results across multiple platforms
  • Loading branch information
mattn committed Dec 18, 2019
2 parents afcb59a + 5105ada commit b2bbf7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goveralls.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ func findRepositoryRoot(dir string) (string, bool) {

func getCoverallsSourceFileName(name string) string {
if dir, ok := findRepositoryRoot(name); !ok {
return name
return filepath.ToSlash(name)
} else {
filename := strings.TrimPrefix(name, dir+string(os.PathSeparator))
return filename
return filepath.ToSlash(filename)
}
}

Expand Down

0 comments on commit b2bbf7b

Please sign in to comment.