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); }