Skip to content

Commit bc7bdec

Browse files
committed
fixup extra close_req
1 parent 4d668cb commit bc7bdec

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/node_file.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,6 @@ static void InternalModuleReadJSON(const FunctionCallbackInfo<Value>& args) {
504504
offset += numchars;
505505
} while (static_cast<size_t>(numchars) == kBlockSize);
506506

507-
uv_fs_t close_req;
508-
CHECK_EQ(0, uv_fs_close(loop, &close_req, fd, nullptr));
509-
uv_fs_req_cleanup(&close_req);
510-
511507
size_t start = 0;
512508
if (offset >= 3 && 0 == memcmp(&chars[0], "\xEF\xBB\xBF", 3)) {
513509
start = 3; // Skip UTF-8 BOM.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
'use strict';
22
const common = require('../common');
3-
const assert = require('assert');
43
const fixtures = require('../common/fixtures');
54

65
common.expectsError(
76
() => { require(fixtures.path('module-package-json-directory')); },
87
{
98
code: 'MODULE_NOT_FOUND',
109
message: /Cannot find module/
11-
});
10+
});

0 commit comments

Comments
 (0)