mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
lint: Re-run eslint --fix
This commit is contained in:
parent
db8ca2818f
commit
8f2f6593be
5 changed files with 6 additions and 8 deletions
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in a new issue