mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 15:09:22 +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) {
|
if (state is! ListSharingBlocSuccess && state is! ListSharingBlocFailure) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final newItems = List.of(state.items)
|
final newItems = state.items
|
||||||
.where((element) => !ev.shares.containsIdentical(element.share))
|
.where((element) => !ev.shares.containsIdentical(element.share))
|
||||||
.toList();
|
.toList();
|
||||||
// i love hacks :)
|
// i love hacks :)
|
||||||
|
|
Loading…
Reference in a new issue