refactor: apply changes from analyser

This commit is contained in:
Pun Butrach 2023-07-07 22:15:12 +07:00
parent c7b227529d
commit 7c2c695d88
No known key found for this signature in database
GPG Key ID: 5F47D61B676D07F6

View File

@ -118,7 +118,8 @@ class HomeViewModel extends BaseViewModel {
currentVersion = 'v$currentVersion';
}
_latestManagerVersion = await _managerAPI.getLatestManagerVersion() ?? currentVersion;
_latestManagerVersion =
await _managerAPI.getLatestManagerVersion() ?? currentVersion;
if (_latestManagerVersion != currentVersion) {
return true;
@ -272,7 +273,8 @@ class HomeViewModel extends BaseViewModel {
label: I18nText('updateButton'),
onPressed: () async {
await AppInstaller.installApk(
downloadedApk!.path,);
downloadedApk!.path,
);
},
),
),