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

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

Merged
adidahiya merged 1 commit into
palantir:masterfrom
tanmoyopenroot:3719-prefer-switch-fix-error-with-multiple-or
Nov 3, 2019
Merged

[prefer-switch]: Allow if-else statement with mulitple OR#4873
adidahiya merged 1 commit into
palantir:masterfrom
tanmoyopenroot:3719-prefer-switch-fix-error-with-multiple-or

Conversation

@tanmoyopenroot

@tanmoyopenroot tanmoyopenroot commented Oct 7, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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