src: remove erroneous default argument in RadixTree
This default argument can never benefit any potential caller because any call site that occurs after this definition will result in a compiler error due to RadixTree::Lookup(const std::string_view&) now being an ambiguous call target. PR-URL: https://github.com/nodejs/node/pull/50736 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
e0bbe8fd52
commit
2059913f31
@ -172,7 +172,7 @@ FSPermission::RadixTree::~RadixTree() {
|
||||
}
|
||||
|
||||
bool FSPermission::RadixTree::Lookup(const std::string_view& s,
|
||||
bool when_empty_return = false) const {
|
||||
bool when_empty_return) const {
|
||||
FSPermission::RadixTree::Node* current_node = root_node_;
|
||||
if (current_node->children.size() == 0) {
|
||||
return when_empty_return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user