Open miniBill opened 7 months ago
This is something that we did earlier in the history of the rule and was (partially) removed in v2.0.19 (reasoning in the link). Let me know what you think.
Ah, makes sense. It should have triggered though, because Http.BadBody
comes from a dependency?
You're correct 🤔 I'll mark this as a bug, this will need some looking into.
What the rule should do: Simplify
case of
expressions if all the branches are the same.Example of things the rule would report:
(this is real code, and is the result of other simplifications)
Example of things the rule would not report:
Should this be part of the Simplify rule or should it be a new rule? Should be part of Simplify
I am looking for: