From 54dfa60f1271922a6d221703be115343bb11e0cc Mon Sep 17 00:00:00 2001 From: Mickael Remond Date: Sat, 8 Jun 2019 18:07:52 +0200 Subject: [PATCH] Clean-up --- component.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/component.go b/component.go index 67c4bfd..d897837 100644 --- a/component.go +++ b/component.go @@ -69,7 +69,6 @@ func (c *Component) Connect(connStr string) error { default: return errors.New("unexpected packet, got " + v.Name()) } - panic("unreachable") } // ReadPacket reads next incoming XMPP packet @@ -96,7 +95,7 @@ func (c *Component) Send(packet Packet) error { // disconnect the component. It is up to the user of this method to // carefully craft the XML content to produce valid XMPP. func (c *Component) SendRaw(packet string) error { - fmt.Fprintf(c.conn, packet) // TODO handle errors + fmt.Fprintf(c.conn, packet) return nil }