From f0e1ad2285a455ccb5503ad0363f2ca8ea0fc299 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 20 Jan 2024 21:58:28 +0100 Subject: [PATCH] fix linter warning --- internal/repository/repair_pack_test.go | 2 +- internal/ui/progress/printer.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/repository/repair_pack_test.go b/internal/repository/repair_pack_test.go index e37c42eb7..6b20dbffb 100644 --- a/internal/repository/repair_pack_test.go +++ b/internal/repository/repair_pack_test.go @@ -117,7 +117,7 @@ func testRepairBrokenPack(t *testing.T, version uint) { rtest.OK(t, repository.RepairPacks(context.TODO(), repo, toRepair, &progress.NoopPrinter{})) // reload index rtest.OK(t, repo.SetIndex(index.NewMasterIndex())) - repo.LoadIndex(context.TODO(), nil) + rtest.OK(t, repo.LoadIndex(context.TODO(), nil)) packsAfter := listPacks(t, repo) blobsAfter := listBlobs(repo) diff --git a/internal/ui/progress/printer.go b/internal/ui/progress/printer.go index c95383d3e..a671621e9 100644 --- a/internal/ui/progress/printer.go +++ b/internal/ui/progress/printer.go @@ -17,14 +17,14 @@ type NoopPrinter struct{} var _ Printer = (*NoopPrinter)(nil) -func (*NoopPrinter) NewCounter(description string) *Counter { +func (*NoopPrinter) NewCounter(_ string) *Counter { return nil } -func (*NoopPrinter) E(msg string, args ...interface{}) {} +func (*NoopPrinter) E(_ string, _ ...interface{}) {} -func (*NoopPrinter) P(msg string, args ...interface{}) {} +func (*NoopPrinter) P(_ string, _ ...interface{}) {} -func (*NoopPrinter) V(msg string, args ...interface{}) {} +func (*NoopPrinter) V(_ string, _ ...interface{}) {} -func (*NoopPrinter) VV(msg string, args ...interface{}) {} +func (*NoopPrinter) VV(_ string, _ ...interface{}) {}