From f7d23ee47439b8fe70d5de9b8e1f0e55b5581002 Mon Sep 17 00:00:00 2001 From: Brian McGee Date: Tue, 5 Nov 2024 14:09:13 +0000 Subject: [PATCH] chore: lint Signed-off-by: Brian McGee --- pkg/ephem/swap_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ephem/swap_test.go b/pkg/ephem/swap_test.go index 98ddca0..f103d77 100644 --- a/pkg/ephem/swap_test.go +++ b/pkg/ephem/swap_test.go @@ -35,10 +35,10 @@ func TestReadSwapFile(t *testing.T) { as.NoError(err) as.Empty(swaps) - swaps, err = ReadSwapFile(strings.NewReader(corrupt)) + _, err = ReadSwapFile(strings.NewReader(corrupt)) as.Errorf(err, "malformed entry in swaps file: '%s'", "foo bar baz") - swaps, err = ReadSwapFile(strings.NewReader(badPartition)) + _, err = ReadSwapFile(strings.NewReader(badPartition)) as.Errorf(err, "malformed entry in swaps file: '%s'", `/var/lib/swap-1 foo 1048576 123 -3`) swaps, err = ReadSwapFile(strings.NewReader(sample))