Remove unnecessary null checks in dev/tools (#118845)

This commit is contained in:
Michael Goderbauer
2023-01-19 20:06:09 -08:00
committed by GitHub
parent 98c18ca93f
commit 99b5262b21
7 changed files with 9 additions and 31 deletions

View File

@@ -614,7 +614,7 @@ class PathMatcher extends Matcher {
@override
bool matches(dynamic item, Map<dynamic, dynamic> matchState) {
if (item == null || actual == null) {
if (item == null) {
return item == actual;
}
@@ -666,7 +666,7 @@ class PathAnimationMatcher extends Matcher {
@override
bool matches(dynamic item, Map<dynamic, dynamic> matchState) {
if (item == null || expected == null) {
if (item == null) {
return item == expected;
}