diff --git a/src/node_file.cc b/src/node_file.cc index 70f99c09f6f23a..58abec64f5b118 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -565,8 +565,6 @@ static void InternalModuleReadFile(const FunctionCallbackInfo& args) { CHECK_GE(numchars, 0); if (static_cast(numchars) < kBlockSize) { chars.resize(start + numchars); - } - if (numchars == 0) { break; } offset += numchars;