Skip to content

Commit 6fd1b23

Browse files
juanarboladuh95
authored andcommitted
permission: remove useless conditional
Deleting a null pointer has no effect. The check is not needed. Signed-off-by: Juan José Arboleda <[email protected]> PR-URL: #58514 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
1 parent 597bfef commit 6fd1b23

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/permission/fs_permission.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ void FreeRecursivelyNode(
4545
}
4646
}
4747

48-
if (node->wildcard_child != nullptr) {
49-
delete node->wildcard_child;
50-
}
48+
delete node->wildcard_child;
5149
delete node;
5250
}
5351

0 commit comments

Comments
 (0)