Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

else should be else if? #3

Open
jacobbubu opened this issue Oct 1, 2019 · 2 comments
Open

else should be else if? #3

jacobbubu opened this issue Oct 1, 2019 · 2 comments

Comments

@jacobbubu
Copy link

else (soFar != null) // && (last && soFar != ''))

@dominictarr
Copy link
Member

hmm, so else (soFar != null) only evaluates a expression without side effects, so this line just does nothing. since the if branch has a return, the else branch isn't necessary. That's why this code still works anyway.

@dominictarr
Copy link
Member

anyway, fixed in 0.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants