2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-22 04:45:15 +00:00

Remove unused argument to restic.fakeFile

This commit is contained in:
greatroar 2020-03-09 09:57:51 +01:00
parent 8fb2c0d3c1
commit 2e31120f89

View File

@ -15,7 +15,7 @@ import (
)
// fakeFile returns a reader which yields deterministic pseudo-random data.
func fakeFile(t testing.TB, seed, size int64) io.Reader {
func fakeFile(seed, size int64) io.Reader {
return io.LimitReader(rand.New(rand.NewSource(seed)), size)
}
@ -138,7 +138,7 @@ func (fs *fakeFileSystem) saveTree(ctx context.Context, seed int64, depth int) I
Size: uint64(fileSize),
}
node.Content = fs.saveFile(ctx, fakeFile(fs.t, fileSeed, fileSize))
node.Content = fs.saveFile(ctx, fakeFile(fileSeed, fileSize))
tree.Nodes = append(tree.Nodes, node)
}