Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
changed argument name for overload optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Casperhr committed Jan 28, 2017
1 parent 328c746 commit 7d2f73e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Storage/Storage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,15 +217,15 @@ public class Storage {
}

/// Appends the asset's path with the base CDN URL. With support for optional
public static func getCDNPath(for path: String?) throws -> String? {
guard let cdnBaseURL = cdnBaseURL else {
throw Error.cdnBaseURLNotSet
}

public static func getCDNPath(optional path: String?) throws -> String? {
guard let pathUnwrapped = path else {
return nil
}

guard let cdnBaseURL = cdnBaseURL else {
throw Error.cdnBaseURLNotSet
}

if let cdnPathBuilder = cdnPathBuilder {
return cdnPathBuilder(cdnBaseURL, pathUnwrapped)
}
Expand Down

0 comments on commit 7d2f73e

Please sign in to comment.