mirror of
https://github.com/restic/restic.git
synced 2025-08-26 09:28:01 +00:00
Rename unused parameters to '_'.
This commit is contained in:
@@ -2495,7 +2495,7 @@ type missingFS struct {
|
||||
errorOnOpen bool
|
||||
}
|
||||
|
||||
func (fs *missingFS) OpenFile(name string, flag int, metadataOnly bool) (fs.File, error) {
|
||||
func (fs *missingFS) OpenFile(_ string, _ int, _ bool) (fs.File, error) {
|
||||
if fs.errorOnOpen {
|
||||
return nil, os.ErrNotExist
|
||||
}
|
||||
|
@@ -30,7 +30,7 @@ func createTestFiles(t testing.TB, num int) (files []string) {
|
||||
return files
|
||||
}
|
||||
|
||||
func startFileSaver(ctx context.Context, t testing.TB, fsInst fs.FS) (*fileSaver, context.Context, *errgroup.Group) {
|
||||
func startFileSaver(ctx context.Context, t testing.TB, _ fs.FS) (*fileSaver, context.Context, *errgroup.Group) {
|
||||
wg, ctx := errgroup.WithContext(ctx)
|
||||
|
||||
saveBlob := func(ctx context.Context, tpe restic.BlobType, buf *buffer, _ string, cb func(saveBlobResponse)) {
|
||||
|
Reference in New Issue
Block a user