mirror of
https://github.com/restic/restic.git
synced 2025-08-25 20:57:44 +00:00
Rename unused parameters to '_'.
This commit is contained in:
@@ -14,7 +14,7 @@ type noopSaver struct{}
|
||||
func (n *noopSaver) Connections() uint {
|
||||
return 2
|
||||
}
|
||||
func (n *noopSaver) SaveUnpacked(ctx context.Context, t restic.FileType, buf []byte) (restic.ID, error) {
|
||||
func (n *noopSaver) SaveUnpacked(_ context.Context, _ restic.FileType, buf []byte) (restic.ID, error) {
|
||||
return restic.Hash(buf), nil
|
||||
}
|
||||
|
||||
|
@@ -158,7 +158,7 @@ func BenchmarkAllVersions(b *testing.B, bench VersionedBenchmark) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewLock(t *testing.T, repo *Repository, exclusive bool) (*restic.Lock, error) {
|
||||
func TestNewLock(_ *testing.T, repo *Repository, exclusive bool) (*restic.Lock, error) {
|
||||
// TODO get rid of this test helper
|
||||
return restic.NewLock(context.TODO(), &internalRepository{repo}, exclusive)
|
||||
}
|
||||
|
Reference in New Issue
Block a user