mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
Update src/libutil/util.cc
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
parent
25300c0ecd
commit
72e1e23051
1 changed files with 1 additions and 3 deletions
|
@ -58,9 +58,7 @@ std::optional<std::string> getEnvNonEmpty(const std::string & key) {
|
||||||
auto value = getEnv(key);
|
auto value = getEnv(key);
|
||||||
if (value == "") {
|
if (value == "") {
|
||||||
// TODO: determine whether this should be a warning or an error.
|
// TODO: determine whether this should be a warning or an error.
|
||||||
logWarning({
|
warn("ignoring the '%1%' env variable, its value has been set to \"\"", key);
|
||||||
.msg = hintfmt("ignoring the '%1%' env variable, its value has been set to \"\"", key)
|
|
||||||
});
|
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
} else {
|
} else {
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Reference in a new issue