From 1a504e05225bb86492bec5a6f8b1b0172d1860c7 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Mon, 6 Jun 2022 09:01:02 -0400 Subject: [PATCH] fix(808): simplify handling of Windows line terminations --- commands/root_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/root_test.go b/commands/root_test.go index 840bedda7870194c932668a3a23e87dbc13c9b21..c26964d772177ae7a31bbf4b05ffc7d9b3ef5d60 100644 --- a/commands/root_test.go +++ b/commands/root_test.go @@ -7,7 +7,6 @@ import ( "io/ioutil" "os" "path/filepath" - "strings" "testing" "github.com/MichaelMure/git-bug/commands" @@ -65,7 +64,7 @@ func requireGoldenFileEqual(t *testing.T, path string, act []byte) { t.Helper() // Replace Windows line terminators - act = []byte(strings.ReplaceAll(string(act), "\r\n", "\n")) + // act = []byte(strings.ReplaceAll(string(act), "\r\n", "\n")) path = filepath.Join("testdata", path)