mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 09:18:51 +02:00
refactor: move task, error and testing utils to separte repo; apply gofumpt
This commit is contained in:
@@ -168,12 +168,12 @@ type wrapperConn struct {
|
||||
func (w *wrapperConn) Read(b []byte) (n int, err error) {
|
||||
n, err = w.Conn.Read(b)
|
||||
if err != nil {
|
||||
return
|
||||
return n, err
|
||||
}
|
||||
if w.onRead != nil {
|
||||
if err = w.onRead(w.ctx); err != nil {
|
||||
return
|
||||
return n, err
|
||||
}
|
||||
}
|
||||
return
|
||||
return n, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user