mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
Decaf cleanup: do not throw strings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user