fix linter warning

This commit is contained in:
Michael Eischer 2024-01-20 21:58:28 +01:00
parent fd579421dd
commit f0e1ad2285
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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{}) {}