1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

ox: remove else case

This commit is contained in:
Michael Vetter 2022-02-24 11:49:33 +01:00
parent 144742cb70
commit 8173878bc7

View File

@ -102,7 +102,8 @@ ox_announce_public_key(const char* const filename)
if (!(key && fp)) { if (!(key && fp)) {
cons_show("Error during OpenPGP OX announce. See log file for more information"); cons_show("Error during OpenPGP OX announce. See log file for more information");
return FALSE; return FALSE;
} else { }
log_info("[OX] Annonuce OpenPGP Key for Fingerprint: %s", fp); log_info("[OX] Annonuce OpenPGP Key for Fingerprint: %s", fp);
xmpp_ctx_t* const ctx = connection_get_ctx(); xmpp_ctx_t* const ctx = connection_get_ctx();
char* id = xmpp_uuid_gen(ctx); char* id = xmpp_uuid_gen(ctx);
@ -145,7 +146,7 @@ ox_announce_public_key(const char* const filename)
xmpp_send(connection_get_conn(), iq); xmpp_send(connection_get_conn(), iq);
_ox_metadata_node__public_key(fp); _ox_metadata_node__public_key(fp);
}
return TRUE; return TRUE;
} }