diff --git a/pkgs/leak_tracker_flutter_testing/lib/src/testing.dart b/pkgs/leak_tracker_flutter_testing/lib/src/testing.dart index 35a09727..69e1b8b6 100644 --- a/pkgs/leak_tracker_flutter_testing/lib/src/testing.dart +++ b/pkgs/leak_tracker_flutter_testing/lib/src/testing.dart @@ -43,7 +43,9 @@ void maybeSetupLeakTrackingForTest( void maybeTearDownLeakTrackingForTest() { if (!LeakTesting.enabled || !LeakTracking.isStarted || - LeakTracking.phase.ignoreLeaks) return; + LeakTracking.phase.ignoreLeaks) { + return; + } LeakTracking.phase = const PhaseSettings.ignored(); }