Remove unreacheable panics

This commit is contained in:
Giulio Iotti 2015-05-22 07:42:43 +00:00
parent 0c0c98633c
commit 5f7c3b14b0

View File

@ -554,7 +554,6 @@ func (c *Client) Recv() (stanza interface{}, err error) {
return Presence{v.From, v.To, v.Type, v.Show}, nil return Presence{v.From, v.To, v.Type, v.Show}, nil
} }
} }
panic("unreachable")
} }
// Send sends the message wrapped inside an XMPP message stanza body. // 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 return t, nil
} }
} }
panic("unreachable")
} }
// Scan XML token stream for next element and save into val. // Scan XML token stream for next element and save into val.