From a9b0ff4f36aa83717253cb6799a279b180d74cf6 Mon Sep 17 00:00:00 2001 From: Sergey Penkovsky Date: Fri, 27 Jan 2023 16:02:49 +0300 Subject: [PATCH] Removed exception "ConcurrentModificationError --- lib/src/scope.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/scope.dart b/lib/src/scope.dart index 66dfb94..46eeaf7 100644 --- a/lib/src/scope.dart +++ b/lib/src/scope.dart @@ -71,7 +71,9 @@ class Scope { /// /// return [Scope] Scope dropModules() { - _modulesList.removeAll(_modulesList); + // [AlexeyYuPopkov](https://github.com/AlexeyYuPopkov) Thank you for the [Removed exception "ConcurrentModificationError"](https://github.com/pese-git/cherrypick/pull/2) + _modulesList.clear(); + return this; }