forked from TrueCloudLab/restic
Merge pull request 2055 from gliptak/patch-4
Correct ineffassign
This commit is contained in:
commit
26fc60e7cb
1 changed files with 3 additions and 0 deletions
|
@ -92,6 +92,9 @@ func fillPacks(t testing.TB, rnd *randReader, be Saver, pm *packerManager, buf [
|
||||||
}
|
}
|
||||||
|
|
||||||
n, err := packer.Add(restic.DataBlob, id, buf)
|
n, err := packer.Add(restic.DataBlob, id, buf)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
if n != l {
|
if n != l {
|
||||||
t.Errorf("Add() returned invalid number of bytes: want %v, got %v", n, l)
|
t.Errorf("Add() returned invalid number of bytes: want %v, got %v", n, l)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue