Skip to content

Commit

Permalink
Chore: removed un-neccesary comment for defaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
anikethsaha committed Mar 23, 2020
1 parent 03cdf0d commit 7fef15d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rules/yoda.js
Expand Up @@ -84,8 +84,7 @@ function looksLikeLiteral(node) {
* node represents a negative number literal.
* 3. A normalized Literal node with the string as the value if the node is
* a Template Literal without expression.
* 4. The Literal node which has the `defaultValue` argument if it exists.
* 5. Otherwise `null`.
* 4. Otherwise `null`.
*/
function getNormalizedLiteral(node) {
if (node.type === "Literal") {
Expand Down

0 comments on commit 7fef15d

Please sign in to comment.