diff --git a/src/node_os.cc b/src/node_os.cc index ae6b9c060dc36a..2079a0215fcd28 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -137,16 +137,12 @@ static void GetCPUInfo(const FunctionCallbackInfo& args) { static void GetFreeMemory(const FunctionCallbackInfo& args) { double amount = uv_get_free_memory(); - if (amount < 0) - return; args.GetReturnValue().Set(amount); } static void GetTotalMemory(const FunctionCallbackInfo& args) { double amount = uv_get_total_memory(); - if (amount < 0) - return; args.GetReturnValue().Set(amount); }