Skip to content

Commit

Permalink
Merge pull request #102 from vapor-community/caf-public
Browse files Browse the repository at this point in the history
Made call as function for DynamicExpandable public.
  • Loading branch information
Andrewangeta authored Aug 21, 2020
2 parents f9b596b + 404cca8 commit af077a2
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 af077a2

Please sign in to comment.