mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 05:23:40 -05:00
fixed linting
This commit is contained in:
parent
803ed1607c
commit
b91e59e8a7
1 changed files with 6 additions and 6 deletions
|
@ -90,7 +90,10 @@ class ASpellWorker {
|
||||||
)
|
)
|
||||||
this.callback = null
|
this.callback = null
|
||||||
} else {
|
} else {
|
||||||
logger.warn({ error: err, ...errInfo }, 'aspell worker error')
|
logger.warn(
|
||||||
|
Object.assign({ error: err }, errInfo),
|
||||||
|
'aspell worker error'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.pipe.stdin.on('error', err => {
|
this.pipe.stdin.on('error', err => {
|
||||||
|
@ -119,10 +122,7 @@ class ASpellWorker {
|
||||||
this.callback = null
|
this.callback = null
|
||||||
} else {
|
} else {
|
||||||
logger.warn(
|
logger.warn(
|
||||||
{
|
Object.assign({ error: err }, errInfo),
|
||||||
error: err,
|
|
||||||
...errInfo
|
|
||||||
},
|
|
||||||
'aspell worker error on stdin'
|
'aspell worker error on stdin'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,7 @@ class ASpellWorker {
|
||||||
this.pipe.stdout.on('data', data => {
|
this.pipe.stdout.on('data', data => {
|
||||||
// We receive the language code from Aspell as the end of data marker in
|
// We receive the language code from Aspell as the end of data marker in
|
||||||
// the data. The input is a utf8 encoded string.
|
// the data. The input is a utf8 encoded string.
|
||||||
let oldPos = output.length
|
const oldPos = output.length
|
||||||
output = output + data
|
output = output + data
|
||||||
// The end marker may cross the end of a chunk, so we optimise the search
|
// The end marker may cross the end of a chunk, so we optimise the search
|
||||||
// using the regex lastIndex property.
|
// using the regex lastIndex property.
|
||||||
|
|
Loading…
Reference in a new issue