Skip to content

Commit 6c38057

Browse files
committed
remove other assert
1 parent 1e8add7 commit 6c38057

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/devtools_app/lib/src/app.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,11 @@ class DevToolsAppState extends State<DevToolsApp> with AutoDisposeMixin {
242242
// Provide the appropriate page route.
243243
if (pages.containsKey(page)) {
244244
Widget widget = pages[page]!(context, page, params, state);
245-
assert(() {
245+
if (kDebugMode) {
246246
widget = _AlternateCheckedModeBanner(
247247
builder: (context) => pages[page]!(context, page, params, state),
248248
);
249-
return true;
250-
}());
249+
}
251250
return MaterialPage(child: widget);
252251
}
253252

0 commit comments

Comments
 (0)