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