Skip to content

Commit

Permalink
remove unnecessary futures
Browse files Browse the repository at this point in the history
  • Loading branch information
opxdelwin committed Nov 5, 2024
1 parent 2c0b49c commit 2ecc92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client-app/lib/controllers/remote_config_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RemoteConfigController extends ChangeNotifier {

/// fetches all configs from firebase, and makes models only
/// for notices shown in-app
Future<List<HudNoticeModel>> getNotices() async {
List<HudNoticeModel> getNotices() {
final val = remoteConfig.getString('hud_notice');

// data comes as a string
Expand All @@ -57,7 +57,7 @@ class RemoteConfigController extends ChangeNotifier {
}

/// get latest ios version from remoteConfig
Future<String?> latestIosVersion() async {
String? latestIosVersion() {
final value = remoteConfig.getString('latest_ios_version');
return value == '' ? null : value;
}
Expand Down

0 comments on commit 2ecc92e

Please sign in to comment.