mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
parent
72e1e23051
commit
b96d9c1687
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user