TF-495 Implement linter for mailbox view

This commit is contained in:
dab246
2022-04-22 10:47:52 +07:00
committed by Dat H. Pham
parent a305ba1826
commit 3c44d9aa93
24 changed files with 207 additions and 219 deletions
@@ -16,7 +16,7 @@ class StateDataSourceImpl extends StateDataSource {
Future<State?> getState(StateType stateType) {
return Future.sync(() async {
final stateCache = await _stateCacheClient.getItem(stateType.value);
return stateCache != null ? stateCache.toState() : null;
return stateCache?.toState();
}).catchError((error) {
throw error;
});