From 5f7c3b14b05959a9251244a27ccc2c19aab75fb2 Mon Sep 17 00:00:00 2001 From: Giulio Iotti Date: Fri, 22 May 2015 07:42:43 +0000 Subject: [PATCH] Remove unreacheable panics --- xmpp.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/xmpp.go b/xmpp.go index 0fc7b70..623e8da 100644 --- a/xmpp.go +++ b/xmpp.go @@ -554,7 +554,6 @@ func (c *Client) Recv() (stanza interface{}, err error) { return Presence{v.From, v.To, v.Type, v.Show}, nil } } - panic("unreachable") } // Send sends the message wrapped inside an XMPP message stanza body. @@ -726,7 +725,6 @@ func nextStart(p *xml.Decoder) (xml.StartElement, error) { return t, nil } } - panic("unreachable") } // Scan XML token stream for next element and save into val.