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:
parent
597bfefbe1
commit
6fd1b23260
@ -45,9 +45,7 @@ void FreeRecursivelyNode(
|
||||
}
|
||||
}
|
||||
|
||||
if (node->wildcard_child != nullptr) {
|
||||
delete node->wildcard_child;
|
||||
}
|
||||
delete node->wildcard_child;
|
||||
delete node;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user