From 40408134470bdfca3175147b64b7ad4348dd9c9a Mon Sep 17 00:00:00 2001 From: muxator Date: Tue, 26 Mar 2019 23:44:04 +0100 Subject: [PATCH] db/Pad.js: prototype.copy(), removed redundant callback argument This would cause a crash when calling pad.remove(). Found by the Typescript compiler when doing an experimental conversion. --- src/node/db/Pad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js index 6c97fee8d..8aa742850 100644 --- a/src/node/db/Pad.js +++ b/src/node/db/Pad.js @@ -399,7 +399,7 @@ Pad.prototype.copy = async function copy(destinationID, force) { // exists and forcing let pad = await padManager.getPad(destinationID); - await pad.remove(callback); + await pad.remove(); } // copy the 'pad' entry