TF-1487 Apply linter rule
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user