Replace lots of unused parameters with _

The parameters are required by the implemented function signature or interface.
This commit is contained in:
Michael Eischer 2023-05-18 19:27:38 +02:00
parent d1a5ec7839
commit 472bf5184f
19 changed files with 30 additions and 30 deletions

View file

@ -22,7 +22,7 @@ type saveFail struct {
failAt int32
}
func (b *saveFail) SaveBlob(_ context.Context, t restic.BlobType, buf []byte, id restic.ID, storeDuplicates bool) (restic.ID, bool, int, error) {
func (b *saveFail) SaveBlob(_ context.Context, _ restic.BlobType, _ []byte, id restic.ID, _ bool) (restic.ID, bool, int, error) {
val := atomic.AddInt32(&b.cnt, 1)
if val == b.failAt {
return restic.ID{}, false, 0, errTest