Skip to content

Commit

Permalink
docs: update JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
moeriki committed Jul 13, 2020
1 parent a9f7474 commit f52dd00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/rules/no-magic-numbers.js
Expand Up @@ -96,10 +96,9 @@ module.exports = {
}

/**
* Returns whether the number should be ignored when used as a default
* value assignment.
* Returns whether the number is a default value assignment.
* @param {ASTNode} fullNumberNode `Literal` or `UnaryExpression` full number node
* @returns {boolean} true if the number should be ignored
* @returns {boolean} true if the number is a default value
*/
function isDefaultValue(fullNumberNode) {
const parent = fullNumberNode.parent;
Expand Down

0 comments on commit f52dd00

Please sign in to comment.