Skip to content

Commit e3bee4a

Browse files
committed
lint fixes
Signed-off-by: Avi Deitcher <[email protected]>
1 parent 282a04f commit e3bee4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

filesystem/squashfs/squashfs_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,7 @@ func TestCreateAndReadFile(t *testing.T) {
808808
start = partitions[part].GetStart()
809809
}
810810

811+
//nolint:exhaustive // we only support squashfs
811812
switch spec.FSType {
812813
case filesystem.TypeSquashfs:
813814
return squashfs.Create(d.Backend, size, start, d.LogicalBlocksize)
@@ -857,11 +858,11 @@ func TestCreateAndReadFile(t *testing.T) {
857858
t.Fatal(err)
858859
}
859860

860-
disk, err := diskfs.Open(initdataImagePath, diskfs.WithSectorSize(4096))
861+
di, err := diskfs.Open(initdataImagePath, diskfs.WithSectorSize(4096))
861862
if err != nil {
862863
t.Fatal(err)
863864
}
864-
fsr, err := disk.GetFilesystem(0) // assuming it is the whole disk, so partition = 0
865+
fsr, err := di.GetFilesystem(0) // assuming it is the whole disk, so partition = 0
865866
if err != nil {
866867
t.Fatal(err)
867868
}

0 commit comments

Comments
 (0)