mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: remove empty name check in node_env_var.cc
The empty name check has been removed since this has landed: https://github.com/libuv/libuv/pull/2473 PR-URL: https://github.com/nodejs/node/pull/36133 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
d8b5b9499c
commit
68687d3419
1 file changed
+1
-3
+1
-3
@@ -179,9 +179,7 @@ Local<Array> RealEnvStore::Enumerate(Isolate* isolate) const {
|
||||
for (int i = 0; i < count; i++) {
|
||||
#ifdef _WIN32
|
||||
// If the key starts with '=' it is a hidden environment variable.
|
||||
// The '\0' check is a workaround for the bug behind
|
||||
// https://github.com/libuv/libuv/pull/2473 and can be removed later.
|
||||
if (items[i].name[0] == '=' || items[i].name[0] == '\0') continue;
|
||||
if (items[i].name[0] == '=') continue;
|
||||
#endif
|
||||
MaybeLocal<String> str = String::NewFromUtf8(isolate, items[i].name);
|
||||
if (str.IsEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user