Cosmetic changes.

This commit is contained in:
tastytea 2021-05-21 07:10:46 +02:00
parent a941bcced3
commit 8c8a19b86b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 9 additions and 9 deletions

View File

@ -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())