From b3f3109c4840136993e501ea9740c3198f3edbfe Mon Sep 17 00:00:00 2001 From: Edwin Vermeer Date: Mon, 24 Oct 2016 07:55:01 +0200 Subject: [PATCH] podspec fix --- EVURLCache.podspec | 2 +- EVURLCache/Pod/EVURLCache.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/EVURLCache.podspec b/EVURLCache.podspec index 1c09ed3..f2d0236 100644 --- a/EVURLCache.podspec +++ b/EVURLCache.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| # s.name = "EVURLCache" -s.version = "3.0.1" +s.version = "3.0.2" s.summary = "NSURLCache subclass for handeling all web requests that use NSURLRequest" s.description = "This is a NSURLCache subclass for handeling all web requests that use NSURLRequest. (This includes UIWebView)" s.homepage = "https://github.com/evermeer/EVURLCache" diff --git a/EVURLCache/Pod/EVURLCache.swift b/EVURLCache/Pod/EVURLCache.swift index 81f1cde..6407c3b 100644 --- a/EVURLCache/Pod/EVURLCache.swift +++ b/EVURLCache/Pod/EVURLCache.swift @@ -223,7 +223,7 @@ open class EVURLCache: URLCache { if let modDate: Date = attributes[FileAttributeKey.modificationDate] as? Date { // Test if the file is older than the max age if let threshold: TimeInterval = Double(maxAge) { - let modificationTimeSinceNow: TimeInterval? = -modDate.timeIntervalSinceNow + let modificationTimeSinceNow: TimeInterval = -modDate.timeIntervalSinceNow return modificationTimeSinceNow > threshold } }