Index: utils/pub/utils.dart |
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart |
index 4dbc589a11e3c5fe08e775cb26d2c39802504334..b3db4e060184d6309a5253172da18ee2c9f0d40e 100644 |
--- a/utils/pub/utils.dart |
+++ b/utils/pub/utils.dart |
@@ -74,9 +74,9 @@ List flatten(List nested) { |
*/ |
only(Iterable iter) { |
var iterator = iter.iterator(); |
- assert(iterator.hasNext()); |
+ assert(iterator.hasNext); |
var obj = iterator.next(); |
- assert(!iterator.hasNext()); |
+ assert(!iterator.hasNext); |
return obj; |
} |