diff --git a/lib/services/semantic_search/frameworks/ml_framework.dart b/lib/services/semantic_search/frameworks/ml_framework.dart index 4c04ee59c..3523c721e 100644 --- a/lib/services/semantic_search/frameworks/ml_framework.dart +++ b/lib/services/semantic_search/frameworks/ml_framework.dart @@ -173,11 +173,8 @@ abstract class MLFramework { Future _canDownload() async { final connectivityResult = await (Connectivity().checkConnectivity()); - bool canDownloadUnderCurrentNetworkConditions = true; - if (connectivityResult == ConnectivityResult.mobile) { - canDownloadUnderCurrentNetworkConditions = shouldDownloadOverMobileData; - } - return canDownloadUnderCurrentNetworkConditions; + return connectivityResult != ConnectivityResult.mobile || + shouldDownloadOverMobileData; } Future getAccessiblePathForAsset(