Skip to content

Commit

Permalink
removed unncessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
speckdavid committed Jul 18, 2024
1 parent f44b095 commit 8a3bbe4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/search/command_line.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ shared_ptr<SearchAlgorithm> parse_cmd_line(

static void complete_filename(const string &prefix, vector<string> &suggestions) {
// Split into directory and file_prefix
string partial_filename = "";
filesystem::path prefix_path(prefix);
if (!filesystem::is_directory(prefix_path)) {
partial_filename = prefix_path.filename();
prefix_path = prefix_path.parent_path();
}

Expand Down

0 comments on commit 8a3bbe4

Please sign in to comment.