Skip to content

Commit

Permalink
fix: dont return string from initializeDeviceInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Apr 5, 2024
1 parent 50c2e2f commit 0597f3d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/Amplitude/Amplitude.m
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ - (NSString *)getAdSupportID {

- (NSString *)getDeviceId {
if (self.deviceId == nil) {
return [self initializeDeviceInfo];
[self initializeDeviceInfo];
}
return self.deviceId;
}
Expand All @@ -1678,7 +1678,7 @@ - (long long)getSessionId {
return _sessionId;
}

- (NSString *)initializeDeviceInfo {
- (void)initializeDeviceInfo {
@synchronized (self) {
if (self->_deviceInfo == nil) {
self->_deviceInfo = [[AMPDeviceInfo alloc] init];
Expand All @@ -1691,7 +1691,6 @@ - (NSString *)initializeDeviceInfo {
}
}
}
return self.deviceId;
}

- (NSString *)_getDeviceId {
Expand Down

0 comments on commit 0597f3d

Please sign in to comment.