Skip to content

Commit

Permalink
watcher/cli: no need for canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Oct 20, 2023
1 parent 35b4721 commit 1026758
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/wtr/watcher/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,8 @@ auto from_cmdline(int const argc, char const** const argv)
auto given_or_current_path = [](int const argc, char const** const argv)
{
namespace fs = std::filesystem;

return fs::canonical(
[&]
{
auto p = fs::path(argc > 1 ? argv[1] : ".");
return fs::exists(p) ? p : fs::current_path();
}());
auto p = fs::path(argc > 1 ? argv[1] : ".");
return fs::exists(p) ? p : fs::current_path();
};

/* Show what happens.
Expand Down

0 comments on commit 1026758

Please sign in to comment.