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: #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>1 parent 32efb63 commit 1cd417dFile tree Expand file treeCollapse file tree 1 file changedCopy full SHA for 1cd417d
+1
-3
lines changedFilter options
+1
-3
lines changed +1-3Lines changed: 1 addition & 3 deletions Original file line number Diff line number Diff line change
@@ -45,9 +45,7 @@ void FreeRecursivelyNode(
45
45
}
46
46
}
47
47
48
-
if (node->wildcard_child != nullptr) {
49
-
delete node->wildcard_child;
50
-
}
48
+
delete node->wildcard_child;
51
49
delete node;
52
50
}
53
51
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4