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', () => { stats.gauge('activePads', () => {
const padIds = []; const padIds = [];
for (const session of Object.keys(sessioninfos)) { for (const session of Object.keys(sessioninfos)) {
if(sessioninfos[session].padId) { if (sessioninfos[session].padId) {
if(padIds.indexOf(sessioninfos[session].padId) === -1) { if (padIds.indexOf(sessioninfos[session].padId) === -1) {
padIds.push(sessioninfos[session].padId); padIds.push(sessioninfos[session].padId);
} }
} }
}; }
return padIds.length; return padIds.length;
}); });
}; };
/** /**

View file

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

View file

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

View file

@ -2180,7 +2180,7 @@ function Ace2Inner() {
isScrollableEditEvent(currentCallStack.type); isScrollableEditEvent(currentCallStack.type);
const innerHeight = getInnerHeight(); const innerHeight = getInnerHeight();
scroll.scrollWhenCaretIsInTheLastLineOfViewportWhenNecessary( 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 // End of coverage for https://github.com/ether/etherpad-lite/issues/4227
}); });
describe('API: Author creation', function () { describe('API: Author creation', function () {