diff --git a/lib/features/mailbox/data/network/mailbox_api.dart b/lib/features/mailbox/data/network/mailbox_api.dart index d696708b8..9e66aee64 100644 --- a/lib/features/mailbox/data/network/mailbox_api.dart +++ b/lib/features/mailbox/data/network/mailbox_api.dart @@ -212,12 +212,7 @@ class MailboxAPI with HandleSetErrorMixin { notUpdatedError: response.notUpdated, notCreatedError: response.notCreated, notDestroyedHandlers: { - (entry) { - if (entry.value.type == SetError.notFound) { - return true; - } - return false; - } + (entry) => entry.value.type == SetError.notFound, }, unCatchErrorHandler: (setErrorEntry) { remainedErrors.add(setErrorEntry); diff --git a/pubspec.lock b/pubspec.lock index 6cec177c6..0689cfebd 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -651,7 +651,7 @@ packages: name: glob url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.1.1" graphs: dependency: transitive description: