Skip to content
Permalink
Browse files

Docs: Small semantic issue in documentation example (fixes #4937)

  • Loading branch information...
marcelozarate committed Jan 13, 2016
1 parent 1c2a7e7 commit 82fbe098937bcc8313cb9d3386f78e661a61336c
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/rules/no-unneeded-ternary.md
@@ -15,7 +15,7 @@ var isYes = answer === 1;
var isNo = answer === 1 ? false : true;
// Good
var isYes = answer !== 1;
var isNo = answer !== 1;
```

This rule disallows the use of 'Boolean' literals inside conditional expressions.

0 comments on commit 82fbe09

Please sign in to comment.
You can’t perform that action at this time.