TF-1487 Apply linter rule
This commit is contained in:
@@ -61,9 +61,7 @@ class LocalThreadDataSourceImpl extends ThreadDataSource {
|
||||
sort: sort,
|
||||
filterOption: filterOption ?? FilterMessageOption.all,
|
||||
limit: limit);
|
||||
}).catchError((error) {
|
||||
_exceptionThrower.throwException(error);
|
||||
});
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -77,9 +75,7 @@ class LocalThreadDataSourceImpl extends ThreadDataSource {
|
||||
updated: updated,
|
||||
created: created,
|
||||
destroyed: destroyed);
|
||||
}).catchError((error) {
|
||||
_exceptionThrower.throwException(error);
|
||||
});
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -47,9 +47,7 @@ class ThreadDataSourceImpl extends ThreadDataSource {
|
||||
sort: sort,
|
||||
filter: filter,
|
||||
properties: properties);
|
||||
}).catchError((error) {
|
||||
_exceptionThrower.throwException(error);
|
||||
});
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -67,9 +65,7 @@ class ThreadDataSourceImpl extends ThreadDataSource {
|
||||
sinceState,
|
||||
propertiesCreated: propertiesCreated,
|
||||
propertiesUpdated: propertiesUpdated);
|
||||
}).catchError((error) {
|
||||
_exceptionThrower.throwException(error);
|
||||
});
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -90,9 +86,7 @@ class ThreadDataSourceImpl extends ThreadDataSource {
|
||||
mailboxId,
|
||||
updateDestroyedEmailCache,
|
||||
);
|
||||
}).catchError((error) {
|
||||
_exceptionThrower.throwException(error);
|
||||
});
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -100,8 +94,6 @@ class ThreadDataSourceImpl extends ThreadDataSource {
|
||||
return Future.sync(() async {
|
||||
final email = await threadAPI.getEmailById(accountId, emailId, properties: properties);
|
||||
return email.toPresentationEmail();
|
||||
}).catchError((error) {
|
||||
_exceptionThrower.throwException(error);
|
||||
});
|
||||
}).catchError(_exceptionThrower.throwException);
|
||||
}
|
||||
}
|
||||
@@ -48,10 +48,9 @@ class ThreadIsolateWorker {
|
||||
List<EmailId> emailListCompleted = List.empty(growable: true);
|
||||
try {
|
||||
var hasEmails = true;
|
||||
Email? lastEmail;
|
||||
|
||||
while (hasEmails) {
|
||||
Email? lastEmail;
|
||||
|
||||
final emailsResponse = await args.threadAPI.getAllEmail(args.accountId,
|
||||
sort: <Comparator>{}..add(
|
||||
EmailComparator(EmailComparatorProperty.receivedAt)
|
||||
@@ -66,7 +65,7 @@ class ThreadIsolateWorker {
|
||||
|
||||
log('ThreadIsolateWorker::_emptyTrashFolderAction(): ${newEmailList.length}');
|
||||
|
||||
if (newEmailList.isNotEmpty == true) {
|
||||
if (newEmailList.isNotEmpty) {
|
||||
lastEmail = newEmailList.last;
|
||||
hasEmails = true;
|
||||
final emailIds = newEmailList.map((email) => email.id).toList();
|
||||
@@ -98,10 +97,9 @@ class ThreadIsolateWorker {
|
||||
List<EmailId> emailListCompleted = List.empty(growable: true);
|
||||
try {
|
||||
var hasEmails = true;
|
||||
Email? lastEmail;
|
||||
|
||||
while (hasEmails) {
|
||||
Email? lastEmail;
|
||||
|
||||
final emailsResponse = await _threadAPI.getAllEmail(accountId,
|
||||
sort: <Comparator>{}..add(
|
||||
EmailComparator(EmailComparatorProperty.receivedAt)
|
||||
@@ -116,7 +114,7 @@ class ThreadIsolateWorker {
|
||||
|
||||
log('ThreadIsolateWorker::_emptyTrashFolderOnWeb(): ${newEmailList.length}');
|
||||
|
||||
if (newEmailList.isNotEmpty == true) {
|
||||
if (newEmailList.isNotEmpty) {
|
||||
lastEmail = newEmailList.last;
|
||||
hasEmails = true;
|
||||
final emailIds = newEmailList.map((email) => email.id).toList();
|
||||
|
||||
Reference in New Issue
Block a user