correctly handle eof

This commit is contained in:
Vilsol 2022-06-04 01:44:41 +03:00
parent fb1d33cc17
commit e50b2e59e9

View file

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