Skip to content

Commit

Permalink
Code Refactoring as per Pr Review "onSuccess(CBSubscriptionWrapper.in…
Browse files Browse the repository at this point in the history
…it(list: data.list, nextOffset: data.nextOffset))" to this "onSuccess(data)"
  • Loading branch information
cb-gadagoju committed Aug 14, 2023
1 parent 65fa743 commit 29a1554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Chargebee/Classes/Subscription/CBSubscription.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class CBSubscriptionManager {
if data.list.isEmpty {
onError(CBError.defaultSytemError(statusCode: 404, message: "Subscription Not found"))
}else {
onSuccess(CBSubscriptionWrapper.init(list: data.list, nextOffset: data.nextOffset))
onSuccess(data)
}
} else {
onError(CBError.defaultSytemError(statusCode: 480, message: "json serialization failure"))
Expand Down

0 comments on commit 29a1554

Please sign in to comment.