Skip to content

Commit

Permalink
Removed unnecessary nil check.
Browse files Browse the repository at this point in the history
  • Loading branch information
maratal committed Dec 10, 2023
1 parent 7dfc6c6 commit ed9f576
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Source/ARTPushActivationState.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ - (ARTPushActivationState *)transition:(ARTPushActivationEvent *)event {
[self.machine registerForAPNS];
#if TARGET_OS_IOS
ARTLocalDevice *const local = self.machine.rest.device_nosync;
if ([local clientId] == nil) {
[local setClientId:self.machine.rest.options.clientId];
}
[local setClientId:self.machine.rest.options.clientId];
#endif
return validateAndSync(self.machine, event, self.logger);
}
Expand Down

0 comments on commit ed9f576

Please sign in to comment.