Skip to content

Commit 7dbe713

Browse files
committed
refactor: Avoid making unnecessary mutable copy of dictionary
1 parent 9060518 commit 7dbe713

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/BugsnagKSCrashSysInfoParser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
NSDictionary *BSGParseDevice(NSDictionary *report) {
1919
NSMutableDictionary *device = [NSMutableDictionary new];
20-
NSDictionary *state = [[report valueForKeyPath:@"user.state.deviceState"] mutableCopy];
20+
NSDictionary *state = [report valueForKeyPath:@"user.state.deviceState"];
2121
[device addEntriesFromDictionary:state];
2222

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

0 commit comments

Comments
 (0)