Nicer var name to it's clearer it's an error.
This commit is contained in:
parent
c64a5bc2fe
commit
2776e78613
|
|
@ -40,8 +40,8 @@ func (x *XMPP) Send(v interface{}) {
|
|||
// Return the next stanza.
|
||||
func (x *XMPP) Recv() (interface{}, error) {
|
||||
v := <-x.in
|
||||
if e, ok := v.(error); ok {
|
||||
return nil, e
|
||||
if err, ok := v.(error); ok {
|
||||
return nil, err
|
||||
}
|
||||
return v, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue