From adbceb5daecb75897939320bd284c7589f82642c Mon Sep 17 00:00:00 2001 From: Philip Silva Date: Thu, 14 Jan 2016 16:40:46 +0100 Subject: [PATCH] Recv: handle clientIQ: more terse code --- xmpp.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/xmpp.go b/xmpp.go index 0a66fcc..bb0c472 100644 --- a/xmpp.go +++ b/xmpp.go @@ -594,13 +594,7 @@ func (c *Client) Recv() (stanza interface{}, err error) { case *clientPresence: return Presence{v.From, v.To, v.Type, v.Show, v.Status}, nil case *clientIQ: - result := IQ{ - ID: v.ID, - From: v.From, - To: v.To, - Type: v.Type, - } - return result, nil + return IQ{v.ID, v.From, v.To, v.Type}, nil } } }