Skip to content

Commit

Permalink
method signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
steam0r committed Aug 9, 2024
1 parent 0bfa601 commit 84a7e85
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions shared/api/utils/shared_ops_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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))
{
Expand Down

0 comments on commit 84a7e85

Please sign in to comment.