Skip to content

Commit

Permalink
Fix analyzer warning in BugsnagClient.m
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdowell committed Feb 8, 2021
1 parent b39ca2e commit 48a2b6b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Bugsnag/Client/BugsnagClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ - (instancetype)initWithConfiguration:(BugsnagConfiguration *)configuration {
NSDictionary *systemInfo = [BSG_KSSystemInfo systemInfo];
[self.metadata addMetadata:BSGParseAppMetadata(@{@"system": systemInfo}) toSection:BSGKeyApp];
[self.metadata addMetadata:BSGParseDeviceMetadata(@{@"system": systemInfo}) toSection:BSGKeyDevice];
#if BSG_PLATFORM_IOS
[self.state addMetadata:BSGOrientationNameFromEnum([UIDEVICE currentDevice].orientation)
withKey:BSGKeyOrientation
toSection:BSGKeyDeviceState];
#endif
// sync initial state
[self metadataChanged:self.metadata];
[self metadataChanged:self.state];
Expand Down Expand Up @@ -380,7 +385,6 @@ - (void)start {
[[UIDEVICE currentDevice] beginGeneratingDeviceOrientationNotifications];

[self batteryChanged:nil];
[self orientationChanged:nil];
[self addTerminationObserver:UIApplicationWillTerminateNotification];

#elif BSG_PLATFORM_OSX
Expand Down

0 comments on commit 48a2b6b

Please sign in to comment.