report fix

This commit is contained in:
Thibault Deckers 2024-01-26 22:10:59 +01:00
parent d696dbb01d
commit 0b5e235053

View file

@ -71,7 +71,7 @@ class PlatformReportService extends ReportService {
if (exception is PlatformException && stack != null) { if (exception is PlatformException && stack != null) {
stack = ReportService.buildReportStack(stack, level: 2); stack = ReportService.buildReportStack(stack, level: 2);
} }
if (exception! is UnreportedStateError) { if (exception is! UnreportedStateError) {
return _instance?.recordError(exception, stack); return _instance?.recordError(exception, stack);
} }
} }