File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -184,21 +184,16 @@ class _AddAccountPageState extends State<AddAccountPage> {
184
184
connection.close ();
185
185
}
186
186
} catch (e) {
187
- if (! context.mounted) {
188
- return ;
189
- }
187
+ if (! context.mounted) return ;
188
+
190
189
// TODO(#105) give more helpful feedback; see `fetchServerSettings`
191
190
// in zulip-mobile's src/message/fetchActions.js.
192
191
showErrorDialog (context: context,
193
192
title: zulipLocalizations.errorCouldNotConnectTitle,
194
193
message: zulipLocalizations.errorLoginCouldNotConnect (url.toString ()));
195
194
return ;
196
195
}
197
- // https://github.com/dart-lang/linter/issues/4007
198
- // ignore: use_build_context_synchronously
199
- if (! context.mounted) {
200
- return ;
201
- }
196
+ if (! context.mounted) return ;
202
197
203
198
unawaited (Navigator .push (context,
204
199
LoginPage .buildRoute (serverSettings: serverSettings)));
You can’t perform that action at this time.
0 commit comments