Address review comment

This commit is contained in:
vishnukvmd 2024-01-11 21:42:38 +05:30
parent c6f6232807
commit 9d28270768

View file

@ -173,11 +173,8 @@ abstract class MLFramework {
Future<bool> _canDownload() async {
final connectivityResult = await (Connectivity().checkConnectivity());
bool canDownloadUnderCurrentNetworkConditions = true;
if (connectivityResult == ConnectivityResult.mobile) {
canDownloadUnderCurrentNetworkConditions = shouldDownloadOverMobileData;
}
return canDownloadUnderCurrentNetworkConditions;
return connectivityResult != ConnectivityResult.mobile ||
shouldDownloadOverMobileData;
}
Future<String> getAccessiblePathForAsset(