Skip to content

Commit c7c4957

Browse files
committed
refactor: fixed guard statements
1 parent de47698 commit c7c4957

File tree

2 files changed

+1772
-2921
lines changed

2 files changed

+1772
-2921
lines changed

ios/RNIterableAPI/ReactIterableAPI.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ import React
159159
@objc(setAttributionInfo:)
160160
public func setAttributionInfo(attributionInfo dict: NSDictionary?) {
161161
ITBInfo()
162-
guard let dict = dict else {
163-
IterableAPI.attributionInfo = nil
164-
return
165-
}
166-
IterableAPI.attributionInfo = SerializationUtil.dictionaryToDecodable(
167162
guard let swiftDict = dict as? [AnyHashable: Any] else {
168163
IterableAPI.attributionInfo = nil
169164
return
@@ -319,7 +314,6 @@ import React
319314
@objc(updateUser:mergeNestedObjects:)
320315
public func updateUser(dataFields: NSDictionary, mergeNestedObjects: Bool) {
321316
ITBInfo()
322-
IterableAPI.updateUser(
323317
guard let fields = dataFields as? [AnyHashable: Any] else {
324318
ITBError("Could not cast dataFields to [AnyHashable: Any]")
325319
return
@@ -513,7 +507,6 @@ import React
513507
) {
514508
ITBInfo()
515509
let launchOptions = createLaunchOptions()
516-
let iterableConfig = IterableConfig.from(
517510
guard let configDictTyped = configDict as? [AnyHashable: Any] else {
518511
rejecter("E_INVALID_CONFIG", "configDict could not be cast to [AnyHashable: Any]", nil)
519512
return

0 commit comments

Comments
 (0)