Skip to content

Commit

Permalink
push: push the error & continue if error.file is undefined (#36)
Browse files Browse the repository at this point in the history
this commit has no test...unsure how to create a reasonable fixture to replicate

fixes #30
  • Loading branch information
btakita committed Apr 29, 2023
1 parent 61d211d commit 0de2047
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions check.js
Expand Up @@ -108,6 +108,10 @@ export async function check(
// Unsupported files
continue
}
if (!error.file) {
push(error)
continue
}
let { line, column } = location(error.file.text).toPoint(error.start)
let expect = expects.find(j => {
return error.file.fileName === j.fileName && line === j.line && !j.used
Expand Down

0 comments on commit 0de2047

Please sign in to comment.