Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete unreachable
default
clauses. (#3209)
The Dart analyzer will soon be changed so that if the `default` clause of a `switch` statement is determined to be unreachable by the exhaustiveness checker, a new warning of type `unreachable_switch_default` will be issued. This parallels the behavior of the existing `unreachable_switch_case` warning, which is issued whenever a `case` clause of a `switch` statement is determined to be unreachable. For details see dart-lang/sdk#54575. This PR deletes unreachable `default` clauses from `drift` now, to avoid spurious warnings when the analyzer change lands. --------- Co-authored-by: Simon Binder <[email protected]>
- Loading branch information