about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-03-25 15:59:48 +0100
committerMichael Vetter <jubalh@iodoru.org>2021-03-25 15:59:48 +0100
commitd23c3dd065dd2d884751c23ad2f24e6a716cc6ad (patch)
tree92c679e5f8d4c8566fbd20e8aa66fb43db359296 /src
parentcaa2c7afd0012a9f0279b30ab4bfead988c094a4 (diff)
downloadprofani-tty-d23c3dd065dd2d884751c23ad2f24e6a716cc6ad.tar.gz
stanza: simplify stanza_get_muc_destroy_alternative_room
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/stanza.c5
1 files changed, 1 insertions, 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*