diff options
author | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 15:59:48 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2021-03-25 15:59:48 +0100 |
commit | d23c3dd065dd2d884751c23ad2f24e6a716cc6ad (patch) | |
tree | 92c679e5f8d4c8566fbd20e8aa66fb43db359296 | |
parent | caa2c7afd0012a9f0279b30ab4bfead988c094a4 (diff) | |
download | profani-tty-d23c3dd065dd2d884751c23ad2f24e6a716cc6ad.tar.gz |
stanza: simplify stanza_get_muc_destroy_alternative_room
-rw-r--r-- | src/xmpp/stanza.c | 5 |
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* |