Index: pkg/unittest/mock.dart |
diff --git a/pkg/unittest/mock.dart b/pkg/unittest/mock.dart |
index ded68f35dfff0cef4fa423517ae9ddb1c42a2295..6edb0c8238152bf599b5020101df00330ee30cc7 100644 |
--- a/pkg/unittest/mock.dart |
+++ b/pkg/unittest/mock.dart |
@@ -781,7 +781,7 @@ class LogEntryList { |
if (includeKeys) { |
rtn.logs.add(keyEntry); |
} |
- if (keyIterator.hasNext()) { |
+ if (keyIterator.hasNext) { |
keyEntry = keyIterator.next(); |
} else if (isPreceding) { // We're done. |
break; |