Skip to content

Commit ddc0e43

Browse files
authored
Fix pre-existing HintCode.UNNECESSARY_TYPE_CHECK_TRUE (dart-archive/test_reflective_loader#36)
1 parent 6b2804a commit ddc0e43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkgs/test_reflective_loader/lib/test_reflective_loader.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ void defineReflectiveTests(Type type) {
111111
classMirror.instanceMembers
112112
.forEach((Symbol symbol, MethodMirror memberMirror) {
113113
// we need only methods
114-
if (memberMirror is! MethodMirror || !memberMirror.isRegularMethod) {
114+
if (!memberMirror.isRegularMethod) {
115115
return;
116116
}
117117
// prepare information about the method

0 commit comments

Comments
 (0)