mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-24 23:20:59 +00:00
Decaf cleanup: do not throw strings
This commit is contained in:
parent
8c70e72bfa
commit
db4b0a6f38
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@
|
|||
camelcase,
|
||||
handle-callback-err,
|
||||
new-cap,
|
||||
no-throw-literal,
|
||||
*/
|
||||
const { diff_match_patch } = require('../lib/diff_match_patch')
|
||||
const dmp = new diff_match_patch()
|
||||
|
@ -35,7 +34,7 @@ module.exports = {
|
|||
} else if (type === this.UNCHANGED) {
|
||||
position += content.length
|
||||
} else {
|
||||
throw 'Unknown type'
|
||||
throw new Error('Unknown type')
|
||||
}
|
||||
}
|
||||
callback(null, ops)
|
||||
|
|
Loading…
Reference in a new issue