Skip to content

Commit dd44cfb

Browse files
committed
code cleanup
1 parent da8262a commit dd44cfb

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Branch-SDK/Branch-SDK/BNCDeviceInfo.m

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ - (id)init {
3838
self.hardwareIdType = hardwareIdType;
3939
}
4040

41-
NSString *vendorId = [BNCSystemObserver getVendorId:preferenceHelper.isDebug];
42-
if (vendorId) {
43-
self.vendorId = vendorId;
44-
}
45-
41+
self.vendorId = [BNCSystemObserver getVendorId:preferenceHelper.isDebug];
4642
self.brandName = [BNCSystemObserver getBrand];
4743
self.modelName = [BNCSystemObserver getModel];
4844
self.osName = [BNCSystemObserver getOS];

Branch-SDK/Branch-SDK/BNCServerInterface.m

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,7 @@ - (void)updateDeviceInfoToMutableDictionary:(NSMutableDictionary *)dict {
252252
dict[BRANCH_REQUEST_KEY_IS_HARDWARE_ID_REAL] = @(deviceInfo.isRealHardwareId);
253253
}
254254

255-
if (deviceInfo.vendorId) {
256-
dict[BRANCH_REQUEST_KEY_IOS_VENDOR_ID] = deviceInfo.vendorId;
257-
}
258-
255+
[self safeSetValue:deviceInfo.vendorId forKey:BRANCH_REQUEST_KEY_IOS_VENDOR_ID onDict:dict];
259256
[self safeSetValue:deviceInfo.brandName forKey:BRANCH_REQUEST_KEY_BRAND onDict:dict];
260257
[self safeSetValue:deviceInfo.modelName forKey:BRANCH_REQUEST_KEY_MODEL onDict:dict];
261258
[self safeSetValue:deviceInfo.osName forKey:BRANCH_REQUEST_KEY_OS onDict:dict];

0 commit comments

Comments
 (0)