chore(Lint): Cater to strict-boolean-expression rule
@@ -22,7 +22,9 @@ MathJax.typeset(
},
(result: Result) => {
const { errors, css } = result
- if (errors) errors.map(console.error)
+ if (typeof errors !== 'undefined' && typeof errors.length !== 'undefined') {
+ errors.map(console.error)
+ }
fs.writeFileSync(
dest,
`/* Generated by ${path.basename(__filename)}. Do not edit. */\n\n${css}`
