Skip to content

Commit

Permalink
chore(mobile): fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
shenlong-tanwen committed Feb 18, 2025
1 parent ec51502 commit f63d67f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions mobile/lib/entities/store.entity.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:isar/isar.dart';

part 'store.entity.g.dart';

// ignore: non_constant_identifier_names
final Store = StoreService.I;

/// Key-value store for individual items enumerated in StoreKey.
Expand Down
8 changes: 4 additions & 4 deletions mobile/lib/providers/auth.provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ class AuthNotifier extends StateNotifier<AuthState> {
return true;
}

Future<void> saveWifiName(String wifiName) {
return Store.put(StoreKey.preferredWifiName, wifiName);
Future<void> saveWifiName(String wifiName) async {
await Store.put(StoreKey.preferredWifiName, wifiName);
}

Future<void> saveLocalEndpoint(String url) {
return Store.put(StoreKey.localEndpoint, url);
Future<void> saveLocalEndpoint(String url) async {
await Store.put(StoreKey.localEndpoint, url);
}

String? getSavedWifiName() {
Expand Down

0 comments on commit f63d67f

Please sign in to comment.