From 3352ddfb3641014a98141d9d647f214d32711888 Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Sun, 19 Apr 2020 03:28:21 +0200 Subject: [PATCH] Cleanup: Remove redundant check It's already checked earlier if auth is non-NULL, so this check here is not needed. --- src/admin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/admin.c b/src/admin.c index 47f52e30..4fa253b7 100644 --- a/src/admin.c +++ b/src/admin.c @@ -924,7 +924,7 @@ static void command_manageauth(client_t *client, source_t *source, admin_format_ xmlDocSetRootElement(doc, node); - if (auth && auth->listuser) { + if (auth->listuser) { usersnode = xmlNewChild(rolenode, NULL, XMLSTR("users"), NULL); auth->listuser(auth, usersnode); }