From 2776e786131be3db3476d030d1489eff53ac9e2c Mon Sep 17 00:00:00 2001 From: Matt Goodall Date: Tue, 10 Jul 2012 10:08:49 +0100 Subject: [PATCH] Nicer var name to it's clearer it's an error. --- src/xmpp/xmpp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmpp/xmpp.go b/src/xmpp/xmpp.go index 05cba1d..6c6060a 100644 --- a/src/xmpp/xmpp.go +++ b/src/xmpp/xmpp.go @@ -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 }