diff --git a/lib/unix-read.ts b/lib/unix-read.ts index 8e15beca..9f0faea3 100644 --- a/lib/unix-read.ts +++ b/lib/unix-read.ts @@ -39,9 +39,6 @@ export const unixRead = async ({ try { const { bytesRead } = await fsReadAsync(binding.fd, buffer, offset, length, null) - if (bytesRead === 0) { - return unixRead({ binding, buffer, offset, length, fsReadAsync }) - } logger('Finished read', bytesRead, 'bytes') return { bytesRead, buffer } } catch (err) {