1
0
Fork 0

archive/tar: go1.3 and go1.4 compatibility

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2016-02-15 09:38:46 -05:00
parent 10db8408f6
commit c32966b9e8
1 changed files with 1 additions and 2 deletions

View File

@ -344,7 +344,6 @@ func TestReader(t *testing.T) {
tr = NewReader(f)
hdrs []*Header
chksums []string
rdbuf = make([]byte, 8)
)
for {
var hdr *Header
@ -361,7 +360,7 @@ func TestReader(t *testing.T) {
continue
}
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 {
break
}