mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
lint: Fix awkward string formatting
This commit is contained in:
parent
044f6543a5
commit
019e296c4a
1 changed files with 1 additions and 5 deletions
|
@ -9,11 +9,7 @@ function PadDiff(pad, fromRev, toRev) {
|
|||
}
|
||||
|
||||
const range = pad.getValidRevisionRange(fromRev, toRev);
|
||||
if (!range) {
|
||||
throw new Error(`${'Invalid revision range.' +
|
||||
' startRev: '}${fromRev
|
||||
} endRev: ${toRev}`);
|
||||
}
|
||||
if (!range) throw new Error(`Invalid revision range. startRev: ${fromRev} endRev: ${toRev}`);
|
||||
|
||||
this._pad = pad;
|
||||
this._fromRev = range.startRev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue