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
@@ -30,35 +30,27 @@ class CleanupDataSourceImpl extends CleanupDataSource {
Future<void> cleanEmailCache(EmailCleanupRule cleanupRule) {
return Future.sync(() async {
return await emailCacheManager.clean(cleanupRule);
}).catchError((error) {
_exceptionThrower.throwException(error);
});
}).catchError(_exceptionThrower.throwException);
}
@override
Future<void> cleanRecentSearchCache(RecentSearchCleanupRule cleanupRule) {
return Future.sync(() async {
return await recentSearchCacheManager.clean(cleanupRule);
}).catchError((error) {
_exceptionThrower.throwException(error);
});
}).catchError(_exceptionThrower.throwException);
}
@override
Future<void> cleanRecentLoginUrlCache(RecentLoginUrlCleanupRule cleanupRule) {
return Future.sync(() async {
return await recentLoginUrlCacheManager.clean(cleanupRule);
}).catchError((error) {
_exceptionThrower.throwException(error);
});
}).catchError(_exceptionThrower.throwException);
}
@override
Future<void> cleanRecentLoginUsernameCache(RecentLoginUsernameCleanupRule cleanupRule) {
return Future.sync(() async {
return await recentLoginUsernameCacheManager.clean(cleanupRule);
}).catchError((error) {
_exceptionThrower.throwException(error);
});
}).catchError(_exceptionThrower.throwException);
}
}