From 76ae744f3cb04cfd735697cad27d14a4041c2522 Mon Sep 17 00:00:00 2001 From: raisinten Date: Mon, 16 Nov 2020 18:18:38 +0530 Subject: [PATCH] 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 --- src/node_env_var.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/node_env_var.cc b/src/node_env_var.cc index 1cf959a6095afd..b056ee93863136 100644 --- a/src/node_env_var.cc +++ b/src/node_env_var.cc @@ -176,9 +176,7 @@ Local 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 str = String::NewFromUtf8(isolate, items[i].name); if (str.IsEmpty()) {