mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 06:27:19 +01:00
fix ts error
This commit is contained in:
@@ -33,7 +33,7 @@ function generateDoc(id: string) {
|
||||
})
|
||||
|
||||
pdflatex.on('close', (code) => {
|
||||
if (code > 0) {
|
||||
if (code !== null && code > 0) {
|
||||
reject(`pdflatex returned with code ${code}`)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user