Skip to content

Commit 55fe45f

Browse files
committed
store [nfc]: Mention TODO for checking account existence
Signed-off-by: Zixuan James Li <[email protected]>
1 parent e1ac92f commit 55fe45f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/model/store.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ abstract class GlobalStore extends ChangeNotifier {
151151
assert(_accounts.containsKey(accountId));
152152
final store = await doLoadPerAccount(accountId);
153153
if (!_accounts.containsKey(accountId)) {
154+
// TODO(#1354): handle this earlier
154155
// [removeAccount] was called during [doLoadPerAccount].
155156
store.dispose();
156157
throw AccountNotFoundException();

0 commit comments

Comments
 (0)