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/example_filesystems | |
| parent | cdb80ea9825d2e876f1cf579bf960e4da7656b4c (diff) | |
Fix a bunch of staticcheck errors
Tool-assisted.
Diffstat (limited to 'tests/example_filesystems')
| -rw-r--r-- | tests/example_filesystems/example_test_helpers.go | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/tests/example_filesystems/example_test_helpers.go b/tests/example_filesystems/example_test_helpers.go index c56d75a..34e5786 100644 --- a/tests/example_filesystems/example_test_helpers.go +++ b/tests/example_filesystems/example_test_helpers.go @@ -1,7 +1,6 @@  package example_filesystems  import ( -	"io/ioutil"  	"os"  	"path/filepath"  	"testing" @@ -15,7 +14,7 @@ const statusTxtContent = "It works!\n"  func checkExampleFS(t *testing.T, dir string, rw bool) {  	// Read regular file  	statusFile := filepath.Join(dir, "status.txt") -	contentBytes, err := ioutil.ReadFile(statusFile) +	contentBytes, err := os.ReadFile(statusFile)  	if err != nil {  		t.Error(err)  		return @@ -68,7 +67,7 @@ func checkExampleFSrw(t *testing.T, dir string, rw bool) {  		"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +  		"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" +  		"xxxxxxxxxxxxxxxxxxxxxxxx" -	contentBytes, err := ioutil.ReadFile(filepath.Join(dir, longname)) +	contentBytes, err := os.ReadFile(filepath.Join(dir, longname))  	if err != nil {  		t.Error(err)  		return | 
