1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-22 08:05:39 +00:00

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

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
}