make linter happy
This commit is contained in:
parent
e50b2e59e9
commit
9be0f0a1e2
1 changed files with 3 additions and 3 deletions
|
@ -34,11 +34,11 @@ func (pt *Progresser) Read(p []byte) (int, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err != io.EOF {
|
if err == io.EOF {
|
||||||
return n, errors.Wrap(err, "failed to read")
|
return n, io.EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
return n, err
|
return n, errors.Wrap(err, "failed to read")
|
||||||
}
|
}
|
||||||
|
|
||||||
type GenericUpdate struct {
|
type GenericUpdate struct {
|
||||||
|
|
Loading…
Reference in a new issue