[unawaited_futures] Special-case future.then((_) => completer.complete[Error](...)) #57784
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
linter-false-positive
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
This is one of the obvious cases that don't need to be awaited, which I originally intended to add to https://github.com/dart-lang/linter/blob/master/lib/src/rules/unawaited_futures.dart#L83 but was too lazy.
Turns out this is a frequent use-case for the new
unawaited
helper from https://github.com/dart-lang/pedantic, so would justify the extra work IMO.@davidmorgan WDYT?
The text was updated successfully, but these errors were encountered: