Remove extra error wrapping

This commit is contained in:
Sasha Koshka 2025-10-30 00:01:55 -04:00
parent 4f4443069d
commit a00e9d3183

View File

@ -390,7 +390,7 @@ func (this *readerA) pull() (uint16, error) {
// close and return error on failure
this.eof = true
this.parent.Close()
return 0, fmt.Errorf("could not receive message: %w", this.parent.bestErr())
return 0, this.parent.bestErr()
}
func (this *readerA) Read(buffer []byte) (int, error) {