Skip to content

Commit 9f59418

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 09c3bb1 commit 9f59418

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
@@ -172,7 +172,7 @@ FSPermission::RadixTree::~RadixTree() {
172172
}
173173

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

0 commit comments

Comments
 (0)