mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Pad: Use default parameter value
This commit is contained in:
parent
aec512d1fa
commit
449b972e6a
1 changed files with 1 additions and 3 deletions
|
@ -77,9 +77,7 @@ Pad.prototype.getPublicStatus = function () {
|
|||
return this.publicStatus;
|
||||
};
|
||||
|
||||
Pad.prototype.appendRevision = async function (aChangeset, authorId) {
|
||||
if (!authorId) authorId = '';
|
||||
|
||||
Pad.prototype.appendRevision = async function (aChangeset, authorId = '') {
|
||||
const newAText = Changeset.applyToAText(aChangeset, this.atext, this.pool);
|
||||
if (newAText.text === this.atext.text && newAText.attribs === this.atext.attribs) {
|
||||
return this.head;
|
||||
|
|
Loading…
Reference in a new issue