Skip to content

Commit

Permalink
codegov/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
Satyam Jha committed Dec 22, 2024
1 parent 24a3694 commit 8c21409
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@ class MockConnectivityService extends Mock
return Future.value(connectivityStatus!);
}

@override
Future<bool> hasConnection() async {
try {
final results = await getConnectionType();
return results.isNotEmpty &&
results.any((result) => result != ConnectivityResult.none);
} catch (e) {
return false;
}
}

@override
Future<bool> isReachable({
http.Client? client,
Expand Down

0 comments on commit 8c21409

Please sign in to comment.