Last active
November 25, 2016 15:24
-
-
Save thiagodelgado111/f9aa3121de30ae35c084fb509915fc52 to your computer and use it in GitHub Desktop.
eslint complexity rule question
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const a = true; | |
const b = false; | |
const c = true; | |
if (a && b && c) { | |
throw new Error('zomg!'); | |
} | |
if (a || b || c) { | |
throw new Error('zomg!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment