Skip to content

Commit 68400d0

Browse files
author
Talha Altinel
committed
lint
1 parent 4f4a718 commit 68400d0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

anki/record_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"errors"
66
"io"
77
"os"
8-
"path/filepath"
98
"strings"
109
"testing"
1110

@@ -273,10 +272,10 @@ Question,Helper,A,B,C,D,Extra`,
273272
}
274273

275274
func TestWriteCSVRecords(t *testing.T) {
276-
fp := filepath.Join("..", "testdata", "Aout.csv")
277-
raw, err := os.ReadFile(fp)
275+
const f = "../testdata/Aout.csv"
276+
raw, err := os.ReadFile(f)
278277
if err != nil {
279-
t.Fatalf("os.ReadFile(%v): %v", fp, err)
278+
t.Fatalf("os.ReadFile(%q): %v", f, err)
280279
}
281280

282281
tests := []struct {

0 commit comments

Comments
 (0)