Skip to content

Commit 76ae744

Browse files
committed
src: remove empty name check in node_env_var.cc
The empty name check has been removed since this has landed: libuv/libuv#2473
1 parent feff385 commit 76ae744

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/node_env_var.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ Local<Array> RealEnvStore::Enumerate(Isolate* isolate) const {
176176
for (int i = 0; i < count; i++) {
177177
#ifdef _WIN32
178178
// If the key starts with '=' it is a hidden environment variable.
179-
// The '\0' check is a workaround for the bug behind
180-
// https://github.com/libuv/libuv/pull/2473 and can be removed later.
181-
if (items[i].name[0] == '=' || items[i].name[0] == '\0') continue;
179+
if (items[i].name[0] == '=') continue;
182180
#endif
183181
MaybeLocal<String> str = String::NewFromUtf8(isolate, items[i].name);
184182
if (str.IsEmpty()) {

0 commit comments

Comments
 (0)