From d23c3dd065dd2d884751c23ad2f24e6a716cc6ad Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 25 Mar 2021 15:59:48 +0100 Subject: [PATCH] stanza: simplify stanza_get_muc_destroy_alternative_room --- src/xmpp/stanza.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index 68373a3d..96a99960 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -1507,11 +1507,8 @@ stanza_get_muc_destroy_alternative_room(xmpp_stanza_t* stanza) } const char* jid = xmpp_stanza_get_attribute(destroy, STANZA_ATTR_JID); - if (jid) { - return jid; - } - return NULL; + return jid; } char*