mirror of
https://github.com/mjl-/mox.git
synced 2025-07-15 02:14:36 +03:00
consistently use log.Check for logging errors that "should not happen", don't influence application flow
sooner or later, someone will notice one of these messages, which will lead us to a bug.
This commit is contained in:
@ -72,7 +72,7 @@ func (c *Conn) peek(exp byte) bool {
|
||||
|
||||
func (c *Conn) take(exp byte) bool {
|
||||
if c.peek(exp) {
|
||||
c.readbyte()
|
||||
_, _ = c.readbyte()
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Reference in New Issue
Block a user