Skip to content

Commit c8a936c

Browse files
committed
use list unmodifiable
1 parent 6e1d8d8 commit c8a936c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dart/lib/src/scope.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ class Scope {
8383

8484
final List<SentryAttachment> _attachements = [];
8585

86-
List<SentryAttachment> get attachements =>
87-
UnmodifiableListView(_attachements);
86+
List<SentryAttachment> get attachements => List.unmodifiable(_attachements);
8887

8988
Scope(this._options);
9089

0 commit comments

Comments
 (0)