mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
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.
This commit is contained in:
parent
53b3328b5f
commit
4040813447
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue