From 6c1f4b23f80c8b01475ceea781f068028f41745b Mon Sep 17 00:00:00 2001 From: James Andariese Date: Sun, 12 Apr 2015 22:28:30 -0700 Subject: [PATCH] follow up from comment from mattn s/found_anonymous/foundAnonymous/g --- xmpp.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmpp.go b/xmpp.go index 60d65b2..d9bbaa7 100644 --- a/xmpp.go +++ b/xmpp.go @@ -297,15 +297,15 @@ func (c *Client) init(o *Options) error { } if o.User == "" && o.Password == "" { - found_anonymous := false + foundAnonymous := false for _, m := range f.Mechanisms.Mechanism { if m == "ANONYMOUS" { fmt.Fprintf(c.conn, "\n", nsSASL) - found_anonymous = true + foundAnonymous = true break } } - if !found_anonymous { + if !foundAnonymous { return fmt.Errorf("ANONYMOUS authentication is not an option and username and password were not specified") } } else {