From 3d8ddd21b5288bf37c14c1c8f4457f8699d6df41 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Tue, 2 Jun 2020 16:14:59 +0200 Subject: [PATCH] wrong argument in timeout switch --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d1292a6..b18b316 100644 --- a/index.js +++ b/index.js @@ -260,7 +260,7 @@ class Fuse extends Nanoresource { clearTimeout(timeout) if (err === TIMEOUT_ERRNO) { - switch (op) { + switch (name) { case 'write': case 'read': return cb(TIMEOUT_ERRNO, 0, input[2])