mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
lint: Fix ESLint errors (mostly camelcase warnings)
This commit is contained in:
parent
34cfff4e4c
commit
044f6543a5
2 changed files with 19 additions and 23 deletions
|
@ -1233,12 +1233,10 @@ const handleChangesetRequest = async (socket, message) => {
|
|||
*/
|
||||
const getChangesetInfo = async (padId, startNum, endNum, granularity) => {
|
||||
const pad = await padManager.getPad(padId);
|
||||
const head_revision = pad.getHeadRevisionNumber();
|
||||
const headRevision = pad.getHeadRevisionNumber();
|
||||
|
||||
// calculate the last full endnum
|
||||
if (endNum > head_revision + 1) {
|
||||
endNum = head_revision + 1;
|
||||
}
|
||||
if (endNum > headRevision + 1) endNum = headRevision + 1;
|
||||
endNum = Math.floor(endNum / granularity) * granularity;
|
||||
|
||||
const compositesChangesetNeeded = [];
|
||||
|
@ -1300,9 +1298,7 @@ const getChangesetInfo = async (padId, startNum, endNum, granularity) => {
|
|||
|
||||
for (let compositeStart = startNum; compositeStart < endNum; compositeStart += granularity) {
|
||||
const compositeEnd = compositeStart + granularity;
|
||||
if (compositeEnd > endNum || compositeEnd > head_revision + 1) {
|
||||
break;
|
||||
}
|
||||
if (compositeEnd > endNum || compositeEnd > headRevision + 1) break;
|
||||
|
||||
const forwards = composedChangesets[`${compositeStart}/${compositeEnd}`];
|
||||
const backwards = Changeset.inverse(forwards, lines.textlines, lines.alines, pad.apool());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue