Skip to content

Commit

Permalink
another explicit return
Browse files Browse the repository at this point in the history
  • Loading branch information
vegaro committed Jan 22, 2025
1 parent f82449c commit 9b906e9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ final class PurchaseDetailViewModel: ObservableObject {
var localizedOwnership: String? {
switch purchaseInfo {
case .subscription(let subscriptionInfo):
subscriptionInfo.ownershipType == .familyShared
? localization[.sharedThroughFamilyMember]
: nil
return subscriptionInfo.ownershipType == .familyShared
? localization[.sharedThroughFamilyMember]
: nil
case .nonSubscription:
nil
return nil
}
}

Expand Down

0 comments on commit 9b906e9

Please sign in to comment.