Nicer var name to it's clearer it's an error.

This commit is contained in:
Matt Goodall 2012-07-10 10:08:49 +01:00
parent c64a5bc2fe
commit 2776e78613
1 changed files with 2 additions and 2 deletions

View File

@ -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
}