mirror of
https://github.com/octoleo/restic.git
synced 2024-11-21 20:35:12 +00:00
fix linter warning
This commit is contained in:
parent
fd579421dd
commit
f0e1ad2285
@ -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)
|
||||
|
@ -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{}) {}
|
||||
|
Loading…
Reference in New Issue
Block a user