Skip to content

Commit ee0d936

Browse files
committed
Change OSPushSubscriptionState's "nil" json values to be ""
* The dictionary representation of the OSPushSubscriptionState would be better as empty strings instead of the string literal "nil". * This way, it is easier to check for the emptiness of these properties.
1 parent 8f47b6f commit ee0d936

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iOS_SDK/OneSignalSDK/OneSignalUser/Source/OSSubscriptionModel.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public class OSPushSubscriptionState: NSObject {
5353
}
5454

5555
@objc public func jsonRepresentation() -> NSDictionary {
56-
let id = self.id ?? "nil"
57-
let token = self.token ?? "nil"
56+
let id = self.id ?? ""
57+
let token = self.token ?? ""
5858
return [
5959
"id": id,
6060
"token": token,

0 commit comments

Comments
 (0)