unnecessary_parenthesis
false positive for switch expressions
#5008
Labels
false-positive
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Describe the issue
When using a switch expression that is immediately followed by a method on the return result (such as
.then
when the expression returnsFuture
s, parenthesis are required, but the linter creates a false positive.To Reproduce
Expected behavior
The lint should not be thrown
The text was updated successfully, but these errors were encountered: