Skip to content

Commit

Permalink
fix remaining lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbojangles3 committed Sep 25, 2024
1 parent 2ca0262 commit 0fa5414
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions filesystem/fat32/fat32_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1151,8 +1151,8 @@ func mkGigFile(fs filesystem.FileSystem, name string) error {
func TestCreateFileTree(t *testing.T) {
fileName := "file-tree.img"
os.Remove(fileName)
f, err := mkfs(fileName)
err = mkdir(f, "/A")
f, _ := mkfs(fileName)
err := mkdir(f, "/A")
if err != nil {
t.Errorf("Error making dir /A in root: %v", err)
}
Expand All @@ -1178,15 +1178,14 @@ func TestCreateFileTree(t *testing.T) {
if err != nil {
t.Errorf("Error making directory,"+"/b/sub"+inc+"/blob/microfile: %v", err)
}
err = mkRandFile(f, "/b/sub"+inc+"/blob/randfile", rand.Int32N(73))
err = mkRandFile(f, "/b/sub"+inc+"/blob/randfile", rand.Int32N(73)) // #nosec G404
if err != nil {
t.Errorf("Error making directory,"+"/b/sub"+inc+"/blob/randfile: %v", err)
}
err = mkSmallFile(f, "/b/sub"+inc+"/blob/smallfile")
if err != nil {
t.Errorf("Error making directory,"+"/b/sub"+inc+"/blob/smallfile: %v", err)
}

}
err = mkGigFile(f, "/b/sub49/blob/gigfile1")
if err != nil {
Expand Down

0 comments on commit 0fa5414

Please sign in to comment.