TF-1487 Apply linter rule

This commit is contained in:
dab246
2023-02-24 12:12:54 +07:00
committed by Dat Vu
parent 117a8a8fc6
commit 2b71aba278
155 changed files with 798 additions and 1039 deletions
@@ -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);
}
}