Skip to content

Commit

Permalink
Parsing fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrewangeta committed Jun 19, 2019
1 parent 51e0b54 commit 1f74dc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/StripeKit/API/StripeRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public struct StripeDefaultAPIHandler: StripeAPIHandler {
guard response.status == .ok else {
throw try self.decoder.decode(StripeError.self, from: responseData)
}
let stripeResponse = try self.decoder.decode(SM.self, from: responseData)
return self.httpClient.eventLoopGroup.next().makeSucceededFuture(stripeResponse) as! SM
return try self.decoder.decode(SM.self, from: responseData)
}
}
}

0 comments on commit 1f74dc9

Please sign in to comment.