fix: return fetched patch version if non default patch repo is used (#922)

This commit is contained in:
fe 2023-06-07 19:16:25 +02:00 committed by GitHub
parent c24a3828be
commit f6e99f7e88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,13 +300,12 @@ class ManagerAPI {
if (isDefaultPatchesRepo()) { if (isDefaultPatchesRepo()) {
patchesVersion = await getLatestPatchesVersion(); patchesVersion = await getLatestPatchesVersion();
// print('Patches version: $patchesVersion'); // print('Patches version: $patchesVersion');
return patchesVersion ?? '0.0.0';
} else { } else {
// fetch from github // fetch from github
patchesVersion = patchesVersion =
await _githubAPI.getLastestReleaseVersion(getPatchesRepo()); await _githubAPI.getLastestReleaseVersion(getPatchesRepo());
} }
return null; return patchesVersion ?? '0.0.0';
} }
Future<List<PatchedApplication>> getAppsToRemove( Future<List<PatchedApplication>> getAppsToRemove(