Skip to content

Commit 196ad53

Browse files
committed
fs: remove unnecessary handle type checking
1 parent 68e6673 commit 196ad53

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/internal/fs/promises.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,6 @@ async function handleFdClose(fileOpPromise, closeFunc) {
266266
}
267267

268268
async function fsCall(fn, handle, ...args) {
269-
if (handle[kRefs] === undefined) {
270-
throw new ERR_INVALID_ARG_TYPE('filehandle', 'FileHandle', handle);
271-
}
272-
273269
if (handle.fd === -1) {
274270
// eslint-disable-next-line no-restricted-syntax
275271
const err = new Error('file closed');

0 commit comments

Comments
 (0)