Skip to content

Commit 7e0bb56

Browse files
committed
storagePath variable scope bug
1 parent 527b854 commit 7e0bb56

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

EVURLCache.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pod::Spec.new do |s|
88
#
99

1010
s.name = "EVURLCache"
11-
s.version = "3.5.0"
11+
s.version = "3.6.0"
1212
s.summary = "NSURLCache subclass for handeling all web requests that use NSURLRequest"
1313
s.description = "This is a NSURLCache subclass for handeling all web requests that use NSURLRequest. (This includes UIWebView)"
1414
s.homepage = "https://github.com/evermeer/EVURLCache"

EVURLCache/Pod/EVURLCache.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ open class EVURLCache: URLCache {
120120
}
121121

122122
// Check if there is a cache for this request
123-
let storagePath = EVURLCache.storagePathForRequest(request, rootPath: EVURLCache._cacheDirectory) ?? ""
123+
var storagePath = EVURLCache.storagePathForRequest(request, rootPath: EVURLCache._cacheDirectory) ?? ""
124124
if !FileManager.default.fileExists(atPath: storagePath) {
125125
EVURLCache.debugLog("CACHE not found \(storagePath)")
126-
let storagePath = EVURLCache.storagePathForRequest(request, rootPath: EVURLCache._preCacheDirectory) ?? ""
126+
storagePath = EVURLCache.storagePathForRequest(request, rootPath: EVURLCache._preCacheDirectory) ?? ""
127127
if !FileManager.default.fileExists(atPath: storagePath) {
128128
EVURLCache.debugLog("PRECACHE not found \(storagePath)")
129129
return nil

0 commit comments

Comments
 (0)