diff --git a/src/options.cpp b/src/options.cpp index 29e5f43..cfbb18f 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -101,16 +101,16 @@ po::variables_map parse_options(int argc, char *argv[]) fs::path get_config_path() { - auto get_env = [](std::string const &name) - { - const char *env = std::getenv(name.c_str()); - if (env != nullptr) - { - return env; - } + const auto get_env{[](const std::string &name) + { + const char *env = std::getenv(name.c_str()); + if (env != nullptr) + { + return env; + } - return ""; - }; + return ""; + }}; fs::path path{get_env("XDG_CONFIG_HOME")}; if (path.empty())