@@ -983,8 +983,8 @@ class UpdateMachine {
983
983
///
984
984
/// In the future this might load an old snapshot from local storage first.
985
985
static Future <UpdateMachine > load (GlobalStore globalStore, int accountId) async {
986
- Account account = globalStore.getAccount (accountId) ! ;
987
- final connection = globalStore.apiConnectionFromAccount (account );
986
+ final connection = globalStore.apiConnectionFromAccount (
987
+ globalStore.getAccount (accountId) ! );
988
988
989
989
void stopAndThrowIfNoAccount () {
990
990
final account = globalStore.getAccount (accountId);
@@ -996,11 +996,11 @@ class UpdateMachine {
996
996
}
997
997
998
998
Future <void > updateZulipVersionData (ZulipVersionData data) async {
999
- account = globalStore.getAccount (accountId)! ;
999
+ final account = globalStore.getAccount (accountId)! ;
1000
1000
if (data.zulipVersion != account.zulipVersion
1001
1001
|| data.zulipMergeBase != account.zulipMergeBase
1002
1002
|| data.zulipFeatureLevel != account.zulipFeatureLevel) {
1003
- account = await globalStore.updateAccount (accountId, AccountsCompanion (
1003
+ await globalStore.updateAccount (accountId, AccountsCompanion (
1004
1004
zulipVersion: Value (data.zulipVersion),
1005
1005
zulipMergeBase: Value (data.zulipMergeBase),
1006
1006
zulipFeatureLevel: Value (data.zulipFeatureLevel)));
0 commit comments