zimbatm
2023-03-03 11:32:06 +01:00
parent 72e1e23051
commit b96d9c1687
-2
View File
@@ -57,8 +57,6 @@ std::optional<std::string> getEnv(const std::string & key)
std::optional<std::string> getEnvNonEmpty(const std::string & key) {
auto value = getEnv(key);
if (value == "") {
// TODO: determine whether this should be a warning or an error.
warn("ignoring the '%1%' env variable, its value has been set to \"\"", key);
return std::nullopt;
} else {
return value;