You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2023. It is now read-only.
final myList = <int>[1,2,3];
...
myList.whereType<int> ... // myList is known to contain ints, therefore type assertion is redundant
...
if (myList is List) ... // myList is known to be a List, therefore type check is redundant
Issue a warning for unnecessary type assertions.
Bad:
Inspired by TSLint rule
The text was updated successfully, but these errors were encountered: