New lint to remove ??
inside if null
test when the body does more things
#5109
Labels
lint-request
set-recommended
Affects a rule in the recommended Dart rule set
type-enhancement
A request for a change that isn't a bug
Repro:
This is a code that triggers
prefer_conditional_assignment
with a quick-fix that suggests removing theif
.This code is the same but it does more things, so in this case I believe we should have a new lint + quick-fix for reminding the user to remove the
??
from the assignment expression since it doesn't do anything.As the bot reminded me to be explicit: the second code has no lint today.
The text was updated successfully, but these errors were encountered: