mirror of
https://github.com/restic/restic.git
synced 2025-03-04 10:39:43 +00:00
remove unnecessary min function
This commit is contained in:
parent
a63500663a
commit
e77681f2cd
1 changed files with 0 additions and 7 deletions
|
@ -23,13 +23,6 @@ func randomID(rd io.Reader) restic.ID {
|
||||||
|
|
||||||
const maxBlobSize = 1 << 20
|
const maxBlobSize = 1 << 20
|
||||||
|
|
||||||
func min(a, b int) int {
|
|
||||||
if a < b {
|
|
||||||
return a
|
|
||||||
}
|
|
||||||
return b
|
|
||||||
}
|
|
||||||
|
|
||||||
func fillPacks(t testing.TB, rnd *rand.Rand, pm *packerManager, buf []byte) (bytes int) {
|
func fillPacks(t testing.TB, rnd *rand.Rand, pm *packerManager, buf []byte) (bytes int) {
|
||||||
for i := 0; i < 102; i++ {
|
for i := 0; i < 102; i++ {
|
||||||
l := rnd.Intn(maxBlobSize)
|
l := rnd.Intn(maxBlobSize)
|
||||||
|
|
Loading…
Add table
Reference in a new issue