From 8c8a19b86b77570675e63642988471730f660030 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 21 May 2021 07:10:46 +0200 Subject: [PATCH] Cosmetic changes. --- src/options.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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())