mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Optimize unnecessary copy
This commit is contained in:
parent
0de7e5ed87
commit
f9ae813613
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
|
|||
if (state is! ListSharingBlocSuccess && state is! ListSharingBlocFailure) {
|
||||
return;
|
||||
}
|
||||
final newItems = List.of(state.items)
|
||||
final newItems = state.items
|
||||
.where((element) => !ev.shares.containsIdentical(element.share))
|
||||
.toList();
|
||||
// i love hacks :)
|
||||
|
|
Loading…
Reference in a new issue