Created
October 11, 2017 11:20
-
-
Save kastigar/a96fa5a49d3596c888120cf7d9144ba8 to your computer and use it in GitHub Desktop.
No else
This file contains hidden or 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
function withGoodReadability() { | |
if (someCondition) { | |
return someValue; | |
} | |
return anotherValue; | |
} | |
function withBadReadability() { | |
if (someCondition) { | |
return someValue; | |
} else { | |
return anotherValue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment