We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e794e6 commit 61b95eeCopy full SHA for 61b95ee
1 file changed
src/binance/Config.cpp
@@ -18,7 +18,7 @@ std::string getEnvOrThrow(const char *key) {
18
if (const char *val = std::getenv(key)) {
19
spdlog::info(
20
std::format("fetched environment variable, key [{}], value [{}]", key, val));
21
- return std::string(val);
+ return {val};
22
}
23
throw std::runtime_error(std::format("envvar not defined, key [{}]", key));
24
};
0 commit comments