Skip to content

Commit

Permalink
checkRedundantReturns: dropped return type checking
Browse files Browse the repository at this point in the history
Ref #82
  • Loading branch information
Alexej Yaroshevich committed Jan 25, 2015
1 parent 9da8725 commit 7f7b6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rules/validate-jsdoc/check-redundant-returns.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ function checkReturnTypes(node, tag, err) {
}

// checking redundant: invalid or not return statements in code
var redundant = !tag.type.valid || !this._getReturnStatementsForNode(node).length;
var redundant = !Boolean(this._getReturnStatementsForNode(node).length);

if (redundant) {
err('redundant returns statement');
err('Redundant return statement', tag.loc);
}
}

0 comments on commit 7f7b6e4

Please sign in to comment.