mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04: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;
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue