diff --git a/src/node_env_var.cc b/src/node_env_var.cc index 61c481948fe524..5ac44646c6603f 100644 --- a/src/node_env_var.cc +++ b/src/node_env_var.cc @@ -98,14 +98,6 @@ MaybeLocal RealEnvStore::Get(Isolate* isolate, if (ret >= 0) { // Env key value fetch success. MaybeLocal value_string = String::NewFromUtf8(isolate, *val, NewStringType::kNormal, init_sz); - - // If fetched value is empty, raise exception - // and return empty handle. - if (value_string.IsEmpty()) { - Environment::GetCurrent(isolate)->ThrowUVException(ret, "getenv"); - return MaybeLocal(); - } - return value_string; }