fix metalinter warnings

This commit is contained in:
Anton Kaliaev 2017-10-24 23:19:53 +04:00
parent 21b2c26fb1
commit 81591e288e
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with 2 additions and 3 deletions

View File

@ -591,8 +591,9 @@ func (gr *GroupReader) Read(p []byte) (n int, err error) {
}
// Iterate over files until enough bytes are read
var nn int
for {
nn, err := gr.curReader.Read(p[n:])
nn, err = gr.curReader.Read(p[n:])
n += nn
if err == io.EOF {
// Open the next file
@ -610,8 +611,6 @@ func (gr *GroupReader) Read(p []byte) (n int, err error) {
return n, err
}
}
return n, err
}
// ReadLine reads a line (without delimiter).