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
@@ -133,7 +133,7 @@ class HiveCacheConfig {
);
registerCacheAdapter<FCMSubscriptionCache>(
FCMSubscriptionCacheAdapter(),
CachingConstants.FCM_SUBSCRIPTION_HIVE_CACHE_INDENTITY
CachingConstants.FCM_SUBSCRIPTION_HIVE_CACHE_IDENTITY
);
}
@@ -17,17 +17,13 @@ class HiveCacheVersionClient extends CacheVersionClient {
return Future.sync(() {
final latestVersion = _sharedPreferences.getInt(versionKey);
return latestVersion;
}).catchError((error) {
_exceptionThrower.throwException(error);
});
}).catchError(_exceptionThrower.throwException);
}
@override
Future<bool> storeVersion(int newVersion) {
return Future.sync(() async {
return await _sharedPreferences.setInt(versionKey, newVersion);
}).catchError((error) {
_exceptionThrower.throwException(error);
});
}).catchError(_exceptionThrower.throwException);
}
}
@@ -13,5 +13,5 @@ class CachingConstants {
static const int AUTHENTICATION_INFO_HIVE_CACHE_IDENTIFY = 11;
static const int RECENT_LOGIN_URL_HIVE_CACHE_IDENTITY = 12;
static const int RECENT_LOGIN_USERNAME_HIVE_CACHE_IDENTITY = 13;
static const int FCM_SUBSCRIPTION_HIVE_CACHE_INDENTITY = 14;
static const int FCM_SUBSCRIPTION_HIVE_CACHE_IDENTITY = 14;
}