Skip to content

Commit

Permalink
Adjust code style
Browse files Browse the repository at this point in the history
  • Loading branch information
fredpi committed Aug 9, 2020
1 parent a8abe01 commit de94775
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ internal extension Configuration.FileGraph.FilePath {
private static let remoteCacheVersionNumber: String = "v1"

/// Use this to get the path to the cache directory for the current cache format
private static var versionedRemoteCachePath: String {
"\(remoteCachePath)/\(remoteCacheVersionNumber)"
}
private static let versionedRemoteCachePath: String = "\(remoteCachePath)/\(remoteCacheVersionNumber)"

// MARK: - Methods: Resolving
mutating func resolve(
Expand Down Expand Up @@ -199,7 +197,7 @@ internal extension Configuration.FileGraph.FilePath {

private func filePath(for urlString: String, rootDirectory: String) -> String {
let adjustedUrlString = urlString.replacingOccurrences(of: "/", with: "_")
let path = "\(Configuration.FileGraph.FilePath.versionedRemoteCachePath)" + "/\(adjustedUrlString).yml"
let path = Configuration.FileGraph.FilePath.versionedRemoteCachePath + "/\(adjustedUrlString).yml"
return path.bridge().absolutePathRepresentation(rootDirectory: rootDirectory)
}

Expand Down

0 comments on commit de94775

Please sign in to comment.