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

Rule to recommend if-else construct instead of match clause #546

Closed

Conversation

janus
Copy link
Contributor

@janus janus commented May 3, 2022

It improves code readability.

Fixes: #545


## Cause

Detect the use of match clause when it is used in basic control flow.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@janus remove the words "Detect the" (and make use become Use obviously).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Thanks.

@knocte
Copy link
Collaborator

knocte commented Nov 21, 2022

Superseded by #588

@knocte knocte closed this Nov 21, 2022
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

Successfully merging this pull request may close these issues.

Rule to recommend if-else construct instead of match clause
2 participants