Authored by Jimmie Jensen

#1619: Removed commenting out the actualt error check

@@ -532,7 +532,7 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) { @@ -532,7 +532,7 @@ FOUNDATION_STATIC_INLINE NSUInteger SDCacheCostForImage(UIImage *image) {
532 NSDictionary *resourceValues = [fileURL resourceValuesForKeys:resourceKeys error:&error]; 532 NSDictionary *resourceValues = [fileURL resourceValuesForKeys:resourceKeys error:&error];
533 533
534 // Skip directories and errors. 534 // Skip directories and errors.
535 - if (/*error || */[resourceValues[NSURLIsDirectoryKey] boolValue]) { 535 + if (error || [resourceValues[NSURLIsDirectoryKey] boolValue]) {
536 continue; 536 continue;
537 } 537 }
538 538