Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
axel-op committed Apr 15, 2020
1 parent 3c13084 commit 5f88c57
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
reason = [NSString stringWithFormat:@"thrown %@", context];
}

FIRExceptionModel *exception = [FIRExceptionModel
exceptionModelWithName:call.arguments[@"exception"]
reason:reason];

FIRExceptionModel *exception =
[FIRExceptionModel exceptionModelWithName:call.arguments[@"exception"] reason:reason];

exception.stackTrace = frames;

[[FIRCrashlytics crashlytics] recordExceptionModel:exception];
Expand All @@ -97,10 +96,10 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
}

- (FIRStackFrame *)generateFrame:(NSDictionary *)errorElement {
FIRStackFrame *frame = [FIRStackFrame
stackFrameWithSymbol:[errorElement valueForKey:@"method"]
file:[errorElement valueForKey:@"file"]
line:[[errorElement valueForKey:@"line"] intValue]];
FIRStackFrame *frame =
[FIRStackFrame stackFrameWithSymbol:[errorElement valueForKey:@"method"]
file:[errorElement valueForKey:@"file"]
line:[[errorElement valueForKey:@"line"] intValue]];
return frame;
}

Expand Down

0 comments on commit 5f88c57

Please sign in to comment.