From 48baa060c59728248c3dce206197e21f89579435 Mon Sep 17 00:00:00 2001 From: Hubert Hirtz Date: Wed, 5 Aug 2020 13:13:47 +0200 Subject: Tidying --- irc/states.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'irc/states.go') diff --git a/irc/states.go b/irc/states.go index 5585990..9e5ed56 100644 --- a/irc/states.go +++ b/irc/states.go @@ -29,7 +29,7 @@ func (auth *SASLPlain) Handshake() (mech string) { func (auth *SASLPlain) Respond(challenge string) (res string, err error) { if challenge != "+" { - err = errors.New("Unexpected challenge") + err = errors.New("unexpected challenge") return } @@ -213,7 +213,7 @@ func (s *Session) Running() bool { func (s *Session) Stop() { s.running.Store(false) - s.conn.Close() + _ = s.conn.Close() } func (s *Session) Poll() (events <-chan Event) { -- cgit v1.2.3