Skip to content

Commit 1e8add7

Browse files
committed
use if (kDebugMode)
1 parent 03c168c commit 1e8add7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/devtools_app/lib/src/framework/home_screen.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,9 @@ class _ConnectInputState extends State<ConnectInput> with BlockingActionMixin {
163163
void initState() {
164164
super.initState();
165165
connectDialogController = TextEditingController();
166-
assert(() {
167-
_debugInitVmServiceCache();
168-
return true;
169-
}());
166+
if (kDebugMode) _debugInitVmServiceCache();
170167
}
171168

172-
// ignore: unused-code, TODO(https://github.com/flutter/devtools/issues/9907): false positive.
173169
void _debugInitVmServiceCache() async {
174170
// We only do this in debug mode as it speeds iteration for DevTools
175171
// developers who tend to repeatedly restart DevTools to debug the same

0 commit comments

Comments
 (0)