diff --git a/src/node/handler/PadMessageHandler.js b/src/node/handler/PadMessageHandler.js index 8c106c615..7e290b9e3 100644 --- a/src/node/handler/PadMessageHandler.js +++ b/src/node/handler/PadMessageHandler.js @@ -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; }); - }; /** diff --git a/src/node/server.js b/src/node/server.js index c1adfe073..0f0b0147f 100755 --- a/src/node/server.js +++ b/src/node/server.js @@ -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; diff --git a/src/node/utils/Settings.js b/src/node/utils/Settings.js index 9db195f64..0be086090 100644 --- a/src/node/utils/Settings.js +++ b/src/node/utils/Settings.js @@ -381,7 +381,7 @@ exports.commitRateLimiting = { exports.importMaxFileSize = 50 * 1024 * 1024; /* - * Disable Admin UI tests + * Disable Admin UI tests */ exports.enableAdminUITests = false; diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 31d6419ce..72fb9400f 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -2180,7 +2180,7 @@ function Ace2Inner() { isScrollableEditEvent(currentCallStack.type); const innerHeight = getInnerHeight(); scroll.scrollWhenCaretIsInTheLastLineOfViewportWhenNecessary( - rep, isScrollableEvent, innerHeight*2 + rep, isScrollableEvent, innerHeight * 2 ); } diff --git a/src/tests/backend/specs/api/sessionsAndGroups.js b/src/tests/backend/specs/api/sessionsAndGroups.js index 16bbca000..a1f439eb3 100644 --- a/src/tests/backend/specs/api/sessionsAndGroups.js +++ b/src/tests/backend/specs/api/sessionsAndGroups.js @@ -170,7 +170,6 @@ describe(__filename, function () { }); }); // End of coverage for https://github.com/ether/etherpad-lite/issues/4227 - }); describe('API: Author creation', function () {