Skip to content

Commit b43f26c

Browse files
authored
Fix lints (#108)
1 parent 889132a commit b43f26c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/wrapper_test.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract class Expector {
5050
// Parameterization of noSuchMethod. Calls [_action] on every
5151
// member invocation.
5252
class InvocationChecker {
53-
Invocation _expected;
53+
final Invocation _expected;
5454
InvocationChecker(this._expected);
5555
noSuchMethod(Invocation actual) {
5656
testInvocations(_expected, actual);
@@ -399,8 +399,7 @@ void main() {
399399
expect(
400400
set.where((element) => element.startsWith("f")), equals(["foo"]));
401401
expect(set.where((element) => element.startsWith("z")), equals([]));
402-
expect(
403-
set.where((element) => element is String), equals(["foo", "bar"]));
402+
expect(set.whereType<String>(), equals(["foo", "bar"]));
404403
});
405404

406405
test(".containsAll", () {

0 commit comments

Comments
 (0)