mirror of
https://github.com/restic/restic.git
synced 2026-11-21 21:12:42 +00:00
Use _ as parameter name for unused Context
The context is required by the implemented interface.
This commit is contained in:
1 parent
3252f60df5
commit
5e4e268bdc
21 files changed
+46
-46
No files matched your search
@@ -15,7 +15,7 @@ type WritableTreeMap struct {
|
||||
TreeMap
|
||||
}
|
||||
|
||||
func (t WritableTreeMap) SaveBlob(ctx context.Context, tpe restic.BlobType, buf []byte, id restic.ID, storeDuplicate bool) (newID restic.ID, known bool, size int, err error) {
|
||||
func (t WritableTreeMap) SaveBlob(_ context.Context, tpe restic.BlobType, buf []byte, id restic.ID, _ bool) (newID restic.ID, known bool, size int, err error) {
|
||||
if tpe != restic.TreeBlob {
|
||||
return restic.ID{}, false, 0, errors.New("can only save trees")
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ func buildTreeMap(tree TestTree, m TreeMap) restic.ID {
|
||||
// TreeMap returns the trees from the map on LoadTree.
|
||||
type TreeMap map[restic.ID][]byte
|
||||
|
||||
func (t TreeMap) LoadBlob(ctx context.Context, tpe restic.BlobType, id restic.ID, buf []byte) ([]byte, error) {
|
||||
func (t TreeMap) LoadBlob(_ context.Context, tpe restic.BlobType, id restic.ID, _ []byte) ([]byte, error) {
|
||||
if tpe != restic.TreeBlob {
|
||||
return nil, errors.New("can only load trees")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user