lint: Re-run eslint --fix

This commit is contained in:
Richard Hansen 2021-02-13 00:31:36 -05:00
parent db8ca2818f
commit 8f2f6593be
5 changed files with 6 additions and 8 deletions

View file

@ -94,15 +94,14 @@ exports.handleConnect = (socket) => {
stats.gauge('activePads', () => {
const padIds = [];
for (const session of Object.keys(sessioninfos)) {
if(sessioninfos[session].padId) {
if(padIds.indexOf(sessioninfos[session].padId) === -1) {
if (sessioninfos[session].padId) {
if (padIds.indexOf(sessioninfos[session].padId) === -1) {
padIds.push(sessioninfos[session].padId);
}
}
};
}
return padIds.length;
});
};
/**

View file

@ -181,7 +181,7 @@ exports.stop = async () => {
throw new Error(`unknown State: ${state.toString()}`);
}
logger.info('Stopping Etherpad...');
let stopDoneGate = new Gate();
const stopDoneGate = new Gate();
state = State.STOPPING;
try {
let timeout = null;

View file

@ -381,7 +381,7 @@ exports.commitRateLimiting = {
exports.importMaxFileSize = 50 * 1024 * 1024;
/*
* Disable Admin UI tests
* Disable Admin UI tests
*/
exports.enableAdminUITests = false;

View file

@ -2180,7 +2180,7 @@ function Ace2Inner() {
isScrollableEditEvent(currentCallStack.type);
const innerHeight = getInnerHeight();
scroll.scrollWhenCaretIsInTheLastLineOfViewportWhenNecessary(
rep, isScrollableEvent, innerHeight*2
rep, isScrollableEvent, innerHeight * 2
);
}

View file

@ -170,7 +170,6 @@ describe(__filename, function () {
});
});
// End of coverage for https://github.com/ether/etherpad-lite/issues/4227
});
describe('API: Author creation', function () {