Skip to content

Commit

Permalink
Merge pull request onevcat#89 from onevcat/fix/clean-expired-type-cast
Browse files Browse the repository at this point in the history
Try to fix issue 86
  • Loading branch information
onevcat committed Aug 7, 2015
2 parents be8fe27 + a63dbe1 commit d0e9f1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kingfisher/ImageCache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ extension ImageCache {

if let resourceValues = fileURL.resourceValuesForKeys(resourceKeys, error: nil) {
// If it is a Directory. Continue to next file URL.
if let isDirectory = resourceValues[NSURLIsDirectoryKey]?.boolValue {
if isDirectory {
if let isDirectory = resourceValues[NSURLIsDirectoryKey] as? NSNumber {
if isDirectory.boolValue {
continue
}
}
Expand Down

0 comments on commit d0e9f1e

Please sign in to comment.