TF-1008 refactor some code

This commit is contained in:
ManhNTX
2022-11-10 11:07:32 +07:00
committed by Dat H. Pham
parent 8c84a7d55d
commit e2d9f4e6ee
2 changed files with 2 additions and 7 deletions
@@ -212,12 +212,7 @@ class MailboxAPI with HandleSetErrorMixin {
notUpdatedError: response.notUpdated, notUpdatedError: response.notUpdated,
notCreatedError: response.notCreated, notCreatedError: response.notCreated,
notDestroyedHandlers: <SetMethodErrorHandler>{ notDestroyedHandlers: <SetMethodErrorHandler>{
(entry) { (entry) => entry.value.type == SetError.notFound,
if (entry.value.type == SetError.notFound) {
return true;
}
return false;
}
}, },
unCatchErrorHandler: (setErrorEntry) { unCatchErrorHandler: (setErrorEntry) {
remainedErrors.add(setErrorEntry); remainedErrors.add(setErrorEntry);
+1 -1
View File
@@ -651,7 +651,7 @@ packages:
name: glob name: glob
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "2.1.0" version: "2.1.1"
graphs: graphs:
dependency: transitive dependency: transitive
description: description: