Skip to content

Commit bd40356

Browse files
committed
fix(diff): use arg '--strip-trailing-cr'
1 parent 9919a6e commit bd40356

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cobra/cmd/golden_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func compareFiles(pathA, pathB string) error {
4444
// Don't execute diff if it can't be found.
4545
return nil
4646
}
47-
diffCmd := exec.Command(diffPath, "-u", pathA, pathB)
47+
diffCmd := exec.Command(diffPath, "-u", "--strip-trailing-cr", pathA, pathB)
4848
diffCmd.Stdout = output
4949
diffCmd.Stderr = output
5050

0 commit comments

Comments
 (0)