Skip to content

Commit

Permalink
PR Feedback - rename constructRestURL -> constructRESTURL method
Browse files Browse the repository at this point in the history
  • Loading branch information
scannillo committed Aug 17, 2023
1 parent 4ef956b commit d3fe188
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/CorePayments/Networking/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit d3fe188

Please sign in to comment.