Skip to content

Commit

Permalink
fix: no-undefined-types crashing when jsdoc has no tags (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
bary12 authored and gajus committed Apr 6, 2018
1 parent 14d7f22 commit c206a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/noUndefinedTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default iterateJsdoc(({
})
.map(parseComment)
.flatMap((doc) => {
return doc.tags.filter((tag) => {
return (doc.tags || []).filter((tag) => {
return tag.tag === 'typedef';
});
})
Expand Down

0 comments on commit c206a9e

Please sign in to comment.