Skip to content

Commit

Permalink
squash: address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Dawson <[email protected]>
  • Loading branch information
mhdawson committed Oct 24, 2023
1 parent 09d6b13 commit b6749db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/permission/fs_permission.cc
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ void FSPermission::RadixTree::Insert(const std::string& path) {

if (is_wildcard_node || is_last_char) {
std::string node_path = path.substr(parent_node_prefix_len, i);
current_node = current_node->CreateChild(std::move(node_path));
current_node = current_node->CreateChild(node_path);
}

if (is_wildcard_node) {
Expand Down
2 changes: 1 addition & 1 deletion src/permission/fs_permission.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FSPermission final : public PermissionBase {

Node() : wildcard_child(nullptr), is_leaf(false) {}

Node* CreateChild(std::string prefix) {
Node* CreateChild(const std::string& prefix) {
if (prefix.empty() && !is_leaf) {
is_leaf = true;
return this;
Expand Down

0 comments on commit b6749db

Please sign in to comment.