permission: remove useless conditional

Deleting a null pointer has no effect. The check is not needed.

Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/58514
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
Juan José 2025-06-02 00:01:00 -05:00 committed by Antoine du Hamel
parent 597bfefbe1
commit 6fd1b23260
No known key found for this signature in database
GPG Key ID: 21D900FFDB233756

View File

@ -45,9 +45,7 @@ void FreeRecursivelyNode(
}
}
if (node->wildcard_child != nullptr) {
delete node->wildcard_child;
}
delete node->wildcard_child;
delete node;
}