diff options
| author | Shulhan <ms@kilabit.info> | 2024-09-03 00:36:12 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-09-04 01:09:51 +0700 |
| commit | bea911e27eb064653e46493320d3a15061672acc (patch) | |
| tree | 05eefe341784459b3362530b1fb49be563205173 /lib/memfs/memfs_test.go | |
| parent | 218aad17a7f92169b1bd75fccb8a3c87cde0cf8b (diff) | |
| download | pakakeh.go-bea911e27eb064653e46493320d3a15061672acc.tar.xz | |
all: fix various linter warnings
While at it, temporary disable gosec due to excessive report for G115,
which may be true, but may also break the current working program.
We should alter and fix once we can test and make sure that it does not
breaks.
Diffstat (limited to 'lib/memfs/memfs_test.go')
| -rw-r--r-- | lib/memfs/memfs_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/memfs/memfs_test.go b/lib/memfs/memfs_test.go index 8275ea3b..9b82121b 100644 --- a/lib/memfs/memfs_test.go +++ b/lib/memfs/memfs_test.go @@ -39,7 +39,7 @@ func TestMain(m *testing.M) { log.Fatal("!ok:", err) } if !errors.Is(perr.Err, os.ErrExist) { - log.Fatalf("perr: %+v %+v\n", perr.Err, os.ErrExist) + log.Fatalf("perr: %+v %+v", perr.Err, os.ErrExist) } } @@ -543,7 +543,7 @@ func TestMemFS_Get_refresh_withDot(t *testing.T) { t.Cleanup(func() { err = os.Chdir(workDir) if err != nil { - t.Logf(err.Error()) + t.Log(err.Error()) } }) |
