Skip to content

Commit

Permalink
Fixed a case where the 'Jsdoc data looks malformed' warning was displ…
Browse files Browse the repository at this point in the history
…ayed unnecessarily.
  • Loading branch information
75lb committed Sep 8, 2024
1 parent 6e0807d commit 676803e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/ddata.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ return the identifiers which are a `memberof` this one. Exclude externals withou
*/
function _children (options) {
if (!this.id) return []
if (this.id === this.memberof) {
if (this.id && this.memberof && this.id === this.memberof) {
if (!malformedDataWarningIssued) {
console.warn('Jsdoc data looks malformed. Typically, this can be fixed by ensuring the sourcecode file has a `@module tag`. ')
console.warn('Please see the "Document an ES2015 module" section in the wiki')
Expand Down

0 comments on commit 676803e

Please sign in to comment.