Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

[prefer-switch]: Allow if-else statement with mulitple OR #4873

Conversation

tanmoyopenroot
Copy link
Contributor

@tanmoyopenroot tanmoyopenroot commented Oct 7, 2019

PR checklist

Overview of change:

Check if elseStatement is undefined

CHANGELOG.md entry:

[enhancement]: prefer-switch is more lenient with if statements containing multiple OR conditions without any else clause

@adidahiya
Copy link
Contributor

thanks @tanmoyopenroot. please try to add a changelog entry next time as shown in the PR template, if possible.

@adidahiya adidahiya merged commit 77547dd into palantir:master Nov 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prefer-switch should ignore if-else statements with multiple OR conditions
3 participants