From d04c3ffb41a0d2bbae926a38d3456ebda0249565 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 24 Sep 2019 21:55:39 -0700 Subject: [PATCH] Always provide a callback to fs.close() Fix #231 --- lib/write-entry.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/write-entry.js b/lib/write-entry.js index 63f74948..0c019006 100644 --- a/lib/write-entry.js +++ b/lib/write-entry.js @@ -231,7 +231,7 @@ const WriteEntry = warner(class WriteEntry extends MiniPass { er.path = this.absolute er.syscall = 'read' er.code = 'EOF' - this[CLOSE](fd) + this[CLOSE](fd, _ => _) return this.emit('error', er) } @@ -240,7 +240,7 @@ const WriteEntry = warner(class WriteEntry extends MiniPass { er.path = this.absolute er.syscall = 'read' er.code = 'EOF' - this[CLOSE](fd) + this[CLOSE](fd, _ => _) return this.emit('error', er) }