fix(808): simplify handling of Windows line terminations

This commit is contained in:
Steve Moyer 2022-06-06 09:01:02 -04:00
parent 5982e8fb3c
commit 1a504e0522
No known key found for this signature in database
GPG Key ID: D8D464C9D22FB8E0

View File

@ -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)