Skip to content

Commit b2b3139

Browse files
committed
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.
1 parent fc2862b commit b2b3139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/permission/fs_permission.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ FSPermission::RadixTree::~RadixTree() {
171171
}
172172

173173
bool FSPermission::RadixTree::Lookup(const std::string_view& s,
174-
bool when_empty_return = false) {
174+
bool when_empty_return) {
175175
FSPermission::RadixTree::Node* current_node = root_node_;
176176
if (current_node->children.size() == 0) {
177177
return when_empty_return;

0 commit comments

Comments
 (0)