Skip to content

Commit 1a08508

Browse files
MunGellAlexej Yaroshevich
authored andcommitted
enforceExistence: fix error location property
Closes gh-140
1 parent 379e9ff commit 1a08508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/validate-jsdoc/enforce-existence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function enforceExistence(node, err) {
106106
// now clear to check for documentation
107107
if (node.jsdoc) {
108108
if (!node.jsdoc.valid) {
109-
err('Invalid jsdoc-block definition', node.jsdoc.loc);
109+
err('Invalid jsdoc-block definition', node.jsdoc.loc.start);
110110
}
111111
return;
112112
}

0 commit comments

Comments
 (0)