Skip to content

Commit

Permalink
Use filepath.ToSlash()
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed Jul 30, 2022
1 parent a9c46d1 commit 33b74ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func (e Events) String() string {
if i > 0 {
b.WriteString("\n")
}
fmt.Fprintf(b, "%-20s %q", ee.Op.String(), strings.ReplaceAll(ee.Name, `\`, "/"))
fmt.Fprintf(b, "%-20s %q", ee.Op.String(), filepath.ToSlash(ee.Name))
}
return b.String()
}
Expand Down

0 comments on commit 33b74ce

Please sign in to comment.