Skip to content

Commit

Permalink
Update StripeExpandable.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta authored Sep 15, 2021
1 parent ce9d91e commit 668b83c
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 @@ -9,7 +9,7 @@ import Foundation

extension KeyedDecodingContainer {
func decode<T>(_ type: T.Type, forKey key: Self.Key) throws -> T where T : Decodable {
return try decodeIfPresent(type, forKey: key) ?? T(from: self.superDecoder())
return try decodeIfPresent(type, forKey: key) ?? T(from: self.superDecoder(forKey: key))
}
}

Expand Down

0 comments on commit 668b83c

Please sign in to comment.