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:
Tobias Nießen authored and GitHub committed 2023-11-19 14:15:35 +00:00
1 parent e0bbe8fd52
commit 2059913f31
1 file changed
+1 -1
+1 -1
View File
@@ -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;