Skip to content

Commit

Permalink
Made call as function for DynamicExpandable public.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta committed Aug 21, 2020
1 parent f9b596b commit 404cca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/StripeKit/Shared Models/StripeExpandable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public class DynamicExpandable<A: StripeModel, B: StripeModel>: StripeModel {

public var projectedValue: DynamicExpandable<A,B> { self }

func callAsFunction<T: StripeModel>(as type: T.Type) -> T? {
public func callAsFunction<T: StripeModel>(as type: T.Type) -> T? {
switch _state {
case .unexpanded(_), .empty:
return nil
Expand Down

0 comments on commit 404cca8

Please sign in to comment.