From 84a7e8535c544b400f5d4b070bb647cf688434f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Maih=C3=B6fer?= Date: Fri, 9 Aug 2024 16:37:42 +0200 Subject: [PATCH] method signatures --- shared/api/utils/shared_ops_util.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shared/api/utils/shared_ops_util.js b/shared/api/utils/shared_ops_util.js index ea25d14..377b925 100644 --- a/shared/api/utils/shared_ops_util.js +++ b/shared/api/utils/shared_ops_util.js @@ -2534,27 +2534,27 @@ export default class SharedOpsUtil extends SharedUtil }; } - renameToCoreOp(oldName, newName, currentUser, removeOld, cb) + renameToCoreOp(oldName, newName, currentUser, removeOld, cb = null) { return this._renameOp(oldName, newName, currentUser, true, removeOld, false, cb); } - renameToExtensionOp(oldName, newName, currentUser, removeOld, cb) + renameToExtensionOp(oldName, newName, currentUser, removeOld, cb = null) { return this._renameOp(oldName, newName, currentUser, true, removeOld, false, cb); } - renameToTeamOp(oldName, newName, currentUser, removeOld, cb) + renameToTeamOp(oldName, newName, currentUser, removeOld, cb = null) { return this._renameOp(oldName, newName, currentUser, false, removeOld, false, cb); } - renameToUserOp(oldName, newName, currentUser, removeOld, cb) + renameToUserOp(oldName, newName, currentUser, removeOld, cb = null) { return this._renameOp(oldName, newName, currentUser, false, removeOld, false, cb); } - renameToPatchOp(oldName, newName, currentUser, removeOld, newId, cb) + renameToPatchOp(oldName, newName, currentUser, removeOld, newId, cb = null) { return this._renameOp(oldName, newName, currentUser, false, removeOld, newId, cb); } @@ -3187,7 +3187,7 @@ export default class SharedOpsUtil extends SharedUtil return xw.toString(); } - _renameOp(oldName, newName, currentUser, formatCode, removeOld, newId, cb) + _renameOp(oldName, newName, currentUser, formatCode, removeOld, newId, cb = null) { if (!this.isPatchOp(newName)) {