From d3fe18806d8df1cd523662e998ecb2ff46263ba3 Mon Sep 17 00:00:00 2001 From: Sammy Cannillo Date: Thu, 17 Aug 2023 10:15:42 -0500 Subject: [PATCH] PR Feedback - rename constructRestURL -> constructRESTURL method --- Sources/CorePayments/Networking/APIClient.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CorePayments/Networking/APIClient.swift b/Sources/CorePayments/Networking/APIClient.swift index 7a40ac61f..f4192e65b 100644 --- a/Sources/CorePayments/Networking/APIClient.swift +++ b/Sources/CorePayments/Networking/APIClient.swift @@ -30,7 +30,7 @@ public class APIClient { /// :nodoc: public func fetch(request: RESTRequest) async throws -> HTTPResponse { - let url = try constructRestURL(path: request.path, queryParameters: request.queryParameters ?? [:]) + let url = try constructRESTURL(path: request.path, queryParameters: request.queryParameters ?? [:]) let base64EncodedCredentials = Data(coreConfig.clientID.appending(":").utf8).base64EncodedString() @@ -71,7 +71,7 @@ public class APIClient { // MARK: - Private Methods - private func constructRestURL(path: String, queryParameters: [String: String]) throws -> URL { + private func constructRESTURL(path: String, queryParameters: [String: String]) throws -> URL { let urlString = coreConfig.environment.baseURL.appendingPathComponent(path) var urlComponents = URLComponents(url: urlString, resolvingAgainstBaseURL: false)