mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
lint: Close function args on same line as final arg
This commit is contained in:
parent
37508403d8
commit
daee90d2af
7 changed files with 10 additions and 25 deletions
|
@ -1287,8 +1287,7 @@ const composePadChangesets = async (padId, startNum, endNum) => {
|
|||
const changesets = {};
|
||||
await Promise.all(changesetsNeeded.map(
|
||||
(revNum) => pad.getRevisionChangeset(revNum)
|
||||
.then((changeset) => changesets[revNum] = changeset),
|
||||
));
|
||||
.then((changeset) => changesets[revNum] = changeset)));
|
||||
|
||||
// compose Changesets
|
||||
let r;
|
||||
|
|
|
@ -30,14 +30,8 @@ exports.expressPreSession = async (hookName, {app}) => {
|
|||
});
|
||||
|
||||
app.get('/robots.txt', (req, res) => {
|
||||
let filePath = path.join(
|
||||
settings.root,
|
||||
'src',
|
||||
'static',
|
||||
'skins',
|
||||
settings.skinName,
|
||||
'robots.txt',
|
||||
);
|
||||
let filePath =
|
||||
path.join(settings.root, 'src', 'static', 'skins', settings.skinName, 'robots.txt');
|
||||
res.sendFile(filePath, (err) => {
|
||||
// there is no custom robots.txt, send the default robots.txt which dissallows all
|
||||
if (err) {
|
||||
|
|
|
@ -316,8 +316,7 @@ const getHTMLFromAtext = async (pad, atext, authorColors) => {
|
|||
if ((!prevLine || prevLine.listLevel !== line.listLevel) ||
|
||||
(line.listTypeName !== prevLine.listTypeName)) {
|
||||
const exists = _.find(openLists, (item) => (
|
||||
item.level === line.listLevel && item.type === line.listTypeName),
|
||||
);
|
||||
item.level === line.listLevel && item.type === line.listTypeName));
|
||||
if (!exists) {
|
||||
let prevLevel = 0;
|
||||
if (prevLine && prevLine.listLevel) {
|
||||
|
|
|
@ -103,9 +103,7 @@ _.extend(Button.prototype, {
|
|||
tag('button', {
|
||||
'class': ` ${this.attributes.class}`,
|
||||
'data-l10n-id': this.attributes.localizationId,
|
||||
}),
|
||||
),
|
||||
);
|
||||
})));
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -144,9 +142,7 @@ _.extend(SelectButton.prototype, Button.prototype, {
|
|||
'data-key': this.attributes.command,
|
||||
'data-type': 'select',
|
||||
};
|
||||
return tag('li', attributes,
|
||||
this.select({id: this.attributes.selectId}),
|
||||
);
|
||||
return tag('li', attributes, this.select({id: this.attributes.selectId}));
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue