make linter happy

This commit is contained in:
Vilsol 2022-06-04 01:46:59 +03:00
parent e50b2e59e9
commit 9be0f0a1e2

View file

@ -34,11 +34,11 @@ func (pt *Progresser) Read(p []byte) (int, error) {
}
}
if err != io.EOF {
return n, errors.Wrap(err, "failed to read")
if err == io.EOF {
return n, io.EOF
}
return n, err
return n, errors.Wrap(err, "failed to read")
}
type GenericUpdate struct {