forked from mirrors/tar-split
archive/tar: go1.3 and go1.4 compatibility
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
10db8408f6
commit
c32966b9e8
1 changed files with 1 additions and 2 deletions
|
@ -344,7 +344,6 @@ func TestReader(t *testing.T) {
|
||||||
tr = NewReader(f)
|
tr = NewReader(f)
|
||||||
hdrs []*Header
|
hdrs []*Header
|
||||||
chksums []string
|
chksums []string
|
||||||
rdbuf = make([]byte, 8)
|
|
||||||
)
|
)
|
||||||
for {
|
for {
|
||||||
var hdr *Header
|
var hdr *Header
|
||||||
|
@ -361,7 +360,7 @@ func TestReader(t *testing.T) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
h := md5.New()
|
h := md5.New()
|
||||||
_, err = io.CopyBuffer(h, tr, rdbuf) // Effectively an incremental read
|
_, err = io.Copy(h, tr) // Effectively an incremental read
|
||||||
if err != nil {
|
if err != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue