- Notifications
You must be signed in to change notification settings - Fork 11
New rule: Shared else-value for if/case #784
Copy link
Copy link
Open
Labels
new lintIssues suggesting new lints or pull requests implementing new lintsIssues suggesting new lints or pull requests implementing new lints
Description
Activity
Metadata
Metadata
Assignees
Labels
new lintIssues suggesting new lints or pull requests implementing new lintsIssues suggesting new lints or pull requests implementing new lints
Rule summary
From:
To:
The observation is that the value return by the else-arm of the if-expression,
is the same as the expression returned in the else-expression of the
case.Test case
No-change test case
Additional context
Spotted here:
https://github.com/soegaard/webracket/blob/main/lib/web-easy/renderer.rkt#L892