Skip to content

Commit 01720ce

Browse files
committed
fix(diff): use arg '--strip-trailing-cr'
1 parent 9a43267 commit 01720ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cobra/cmd/golden_test.go

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

0 commit comments

Comments
 (0)