Merge pull request #56 from dullgiulio/govet

Remove unreacheable panics
This commit is contained in:
mattn 2015-05-22 17:05:45 +09:00
commit 222c8f8fd0

View File

@ -583,7 +583,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.
@ -761,7 +760,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.