Skip to content

Commit 4040813

Browse files
committed
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.
1 parent 53b3328 commit 4040813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/db/Pad.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Pad.prototype.copy = async function copy(destinationID, force) {
399399

400400
// exists and forcing
401401
let pad = await padManager.getPad(destinationID);
402-
await pad.remove(callback);
402+
await pad.remove();
403403
}
404404

405405
// copy the 'pad' entry

0 commit comments

Comments
 (0)