Skip to content

Commit

Permalink
refactor: Avoid making unnecessary mutable copy of dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed May 16, 2018
1 parent 9060518 commit 7dbe713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/BugsnagKSCrashSysInfoParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

NSDictionary *BSGParseDevice(NSDictionary *report) {
NSMutableDictionary *device = [NSMutableDictionary new];
NSDictionary *state = [[report valueForKeyPath:@"user.state.deviceState"] mutableCopy];
NSDictionary *state = [report valueForKeyPath:@"user.state.deviceState"];
[device addEntriesFromDictionary:state];

[device addEntriesFromDictionary:BSGParseDeviceState(report[@"system"])];
Expand Down

0 comments on commit 7dbe713

Please sign in to comment.