File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,7 @@ class CrashReporting {
38
38
/// [StackTrace] stack
39
39
static Future <void > reportHandledCrash (dynamic exception,
40
40
[StackTrace ? stack]) async {
41
- if (stack != null ) {
42
- _sendCrash (exception, stack, true );
43
- } else {
44
- _sendCrash (exception, StackTrace .current, true );
45
- }
41
+ _sendCrash (exception, stack ?? StackTrace .current, true );
46
42
}
47
43
48
44
static Future <void > _reportUnhandledCrash (
@@ -59,7 +55,7 @@ class CrashReporting {
59
55
trace.frames[i].uri.toString (),
60
56
trace.frames[i].member,
61
57
trace.frames[i].line,
62
- trace.frames[i].column == null ? 0 : trace.frames[i].column ! ));
58
+ trace.frames[i].column ?? 0 ));
63
59
}
64
60
final CrashData crashData = CrashData (
65
61
exception.toString (), Platform .operatingSystem.toString (), frames);
You can’t perform that action at this time.
0 commit comments