From e2d9f4e6ee0361c14e48ad0ace373bf4f6ba286e Mon Sep 17 00:00:00 2001 From: ManhNTX Date: Thu, 10 Nov 2022 11:07:32 +0700 Subject: [PATCH] TF-1008 refactor some code --- lib/features/mailbox/data/network/mailbox_api.dart | 7 +------ pubspec.lock | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) 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: