Skip to content

Commit

Permalink
remove move from substr
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday committed Nov 6, 2024
1 parent 203174b commit f6aca02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ static void ReaddirRecursiveSync(const FunctionCallbackInfo<Value>& args) {
}
#endif
if (start_pos < full_path_length) {
relative_paths.emplace_back(std::move(full_path.substr(start_pos)));
relative_paths.emplace_back(full_path.substr(start_pos));
}
}
}
Expand Down

0 comments on commit f6aca02

Please sign in to comment.