Skip to content

Commit

Permalink
Merge pull request #7 from Ast3r10n/hotfix/perform-access-level
Browse files Browse the repository at this point in the history
Open `perform`
  • Loading branch information
Ast3r10n authored Apr 20, 2020
2 parents 2e11325 + 8513e31 commit 41b2512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Requests/Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ open class Request: AbstractRequest {
/// - error: The task error.
/// - Throws: An error if either the `urlRequest` property was not properly initialised, or the `completionHandler`
/// throws.
public func perform(_ completionHandler: @escaping (_ result: Result<Response, Error>) throws -> Void) {
open func perform(_ completionHandler: @escaping (_ result: Result<Response, Error>) throws -> Void) {

let task = session.dataTask(with: urlRequest) { data, response, error in
if let error = error {
Expand All @@ -153,7 +153,7 @@ open class Request: AbstractRequest {
/// - completionHandler: An handler called upon completion.
/// - result: The response result.
/// - error: The task error.
public func perform<T: Decodable>(decoding object: T.Type,
open func perform<T: Decodable>(decoding object: T.Type,
_ completionHandler: @escaping (
_ result: Result<(T?, URLResponse?), Error>) throws -> Void) {

Expand Down

0 comments on commit 41b2512

Please sign in to comment.