mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 08:45:30 +03:00
fix(808): simplify handling of Windows line terminations
This commit is contained in:
parent
5982e8fb3c
commit
1a504e0522
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user