Skip to content

Commit

Permalink
Update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Jun 12, 2023
1 parent 8418f0e commit d0f7aa7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## vNext (TBD)

### Enhancements
* None
* Improve performance of elementAt, first, single and last on RealmResults ([#1261](https://github.com/realm/realm-dart/issues/1261), [#1262](https://github.com/realm/realm-dart/pull/1262), [#1267](https://github.com/realm/realm-dart/pull/1267)).

### Fixed
* None
Expand Down
2 changes: 1 addition & 1 deletion lib/src/results.dart
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class RealmResults<T extends Object?> extends Iterable<T> with RealmEntity imple
@override
T get single {
if (length != 1) {
throw StateError('Expected exactly one element but was $length');
throw RealmStateError('Expected exactly one element but was $length');
}
return this[0];
}
Expand Down

0 comments on commit d0f7aa7

Please sign in to comment.