From 58c8311d56142ee4faff84f74953349399204777 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Tue, 2 Oct 2018 20:37:30 +0900 Subject: [PATCH] make close handler argument only one --- nodes/core/storage/50-file.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodes/core/storage/50-file.js b/nodes/core/storage/50-file.js index 51ffb3e58..43195901f 100644 --- a/nodes/core/storage/50-file.js +++ b/nodes/core/storage/50-file.js @@ -189,8 +189,7 @@ module.exports = function(RED) { } } - this.on('close', function(arg1, arg2) { - var cb = arg2 ? arg2 : arg1; + this.on('close', function(cb) { if (cb) { node.closeCallbacks.push(done); }