diff options
author | Jakob Unterwurzacher | 2025-07-07 19:54:48 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2025-07-07 19:59:35 +0200 |
commit | 8f5df19b353e02ffba842fd1b15ccf93da7ee3b4 (patch) | |
tree | 8f68b74e56a1d20af82e5093a059d180c925f9be /tests/cli/longnamemax_test.go | |
parent | cdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff) |
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'tests/cli/longnamemax_test.go')
-rw-r--r-- | tests/cli/longnamemax_test.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/cli/longnamemax_test.go b/tests/cli/longnamemax_test.go index e44a84e..357ede6 100644 --- a/tests/cli/longnamemax_test.go +++ b/tests/cli/longnamemax_test.go @@ -2,7 +2,6 @@ package cli import ( "fmt" - "io/ioutil" "os" "path/filepath" "strings" @@ -38,7 +37,7 @@ func TestLongnamemax100(t *testing.T) { for l := 1; l <= 255; l++ { path := pDir + "/" + strings.Repeat("x", l) - if err := ioutil.WriteFile(path, nil, 0600); err != nil { + if err := os.WriteFile(path, nil, 0600); err != nil { t.Fatal(err) } matches, err := filepath.Glob(cDir + "/gocryptfs.longname.*") @@ -84,7 +83,7 @@ func TestLongnamemax100Reverse(t *testing.T) { for l := 1; l <= 255; l++ { path := backingDir + "/" + strings.Repeat("x", l) - if err := ioutil.WriteFile(path, nil, 0600); err != nil { + if err := os.WriteFile(path, nil, 0600); err != nil { t.Fatal(err) } matches, err := filepath.Glob(mntDir + "/gocryptfs.longname.*") |