Skip to content

Commit 68687d3

Browse files
RaisinTentargos
authored andcommitted
src: remove empty name check in node_env_var.cc
The empty name check has been removed since this has landed: libuv/libuv#2473 PR-URL: #36133 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent d8b5b94 commit 68687d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/node_env_var.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ Local<Array> RealEnvStore::Enumerate(Isolate* isolate) const {
179179
for (int i = 0; i < count; i++) {
180180
#ifdef _WIN32
181181
// If the key starts with '=' it is a hidden environment variable.
182-
// The '\0' check is a workaround for the bug behind
183-
// https://github.com/libuv/libuv/pull/2473 and can be removed later.
184-
if (items[i].name[0] == '=' || items[i].name[0] == '\0') continue;
182+
if (items[i].name[0] == '=') continue;
185183
#endif
186184
MaybeLocal<String> str = String::NewFromUtf8(isolate, items[i].name);
187185
if (str.IsEmpty()) {

0 commit comments

Comments
 (0)