Skip to content

Commit

Permalink
Self-execute closures for assert() (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
srawlins committed Jan 9, 2018
1 parent 1e5952c commit 8a225cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/differs/list_differ.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ List<ListChangeRecord<E>> _calcSplices<E>(
assert(() {
splices = new List<ListChangeRecord<E>>.unmodifiable(splices);
return true;
});
}());
return splices;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/src/internal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ List<E> freezeInDevMode<E>(List<E> list) {
assert(() {
list = new List<E>.unmodifiable(list);
return true;
});
}());
return list;
}
2 changes: 1 addition & 1 deletion lib/src/records/list_change_record.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class ListChangeRecord<E> implements ChangeRecord {
throw new ArgumentError('Invalid `addedCount`: $addedCount');
}
return true;
});
}());
}

/// Returns whether [reference] index was changed in this operation.
Expand Down

0 comments on commit 8a225cb

Please sign in to comment.