@@ -958,8 +958,8 @@ class UpdateMachine {
958
958
///
959
959
/// In the future this might load an old snapshot from local storage first.
960
960
static Future <UpdateMachine > load (GlobalStore globalStore, int accountId) async {
961
- Account account = globalStore.getAccount (accountId) ! ;
962
- final connection = globalStore.apiConnectionFromAccount (account );
961
+ final connection = globalStore.apiConnectionFromAccount (
962
+ globalStore.getAccount (accountId) ! );
963
963
964
964
void stopAndThrowIfNoAccount () {
965
965
final account = globalStore.getAccount (accountId);
@@ -971,11 +971,11 @@ class UpdateMachine {
971
971
}
972
972
973
973
Future <void > updateZulipVersionData (ZulipVersionData data) async {
974
- account = globalStore.getAccount (accountId)! ;
974
+ final account = globalStore.getAccount (accountId)! ;
975
975
if (data.zulipVersion != account.zulipVersion
976
976
|| data.zulipMergeBase != account.zulipMergeBase
977
977
|| data.zulipFeatureLevel != account.zulipFeatureLevel) {
978
- account = await globalStore.updateAccount (accountId, AccountsCompanion (
978
+ await globalStore.updateAccount (accountId, AccountsCompanion (
979
979
zulipVersion: Value (data.zulipVersion),
980
980
zulipMergeBase: Value (data.zulipMergeBase),
981
981
zulipFeatureLevel: Value (data.zulipFeatureLevel)));
0 commit comments