Skip to content

Commit

Permalink
reverting behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
fclairamb committed Mar 2, 2024
1 parent ce56eec commit 5917a7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asciiconverter.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (c *asciiConverter) Read(p []byte) (n int, err error) {
} else {
data, _, err = c.reader.ReadLine()
if err != nil {
return -1, err
return n, err
}
}

Expand All @@ -64,7 +64,7 @@ func (c *asciiConverter) Read(p []byte) (n int, err error) {
// client transfers it in ASCII mode
err = c.reader.UnreadByte()
if err != nil {
return -1, err
return n, err

Check warning on line 67 in asciiconverter.go

View check run for this annotation

Codecov / codecov/patch

asciiconverter.go#L67

Added line #L67 was not covered by tests
}

lastByte, err := c.reader.ReadByte()
Expand Down

0 comments on commit 5917a7c

Please sign in to comment.