Pad: Use default parameter value

This commit is contained in:
Richard Hansen 2022-02-16 22:29:42 -05:00
parent aec512d1fa
commit 449b972e6a

View file

@ -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;