[build] try try try

This commit is contained in:
Timothy Stack 2022-05-24 10:15:52 -07:00
parent 6b59b03750
commit 6105db3c32
1 changed files with 1 additions and 3 deletions

View File

@ -125,9 +125,7 @@ std::string
build_path(const std::vector<ghc::filesystem::path>& paths)
{
return paths
| lnav::itertools::map(
static_cast<std::string (ghc::filesystem::path::*)() const>(
&ghc::filesystem::path::string))
| lnav::itertools::map([](const auto& path) { return path.string(); })
| lnav::itertools::append(getenv_opt("PATH").value_or(""))
| lnav::itertools::filter_out(&std::string::empty)
| lnav::itertools::fold(