Skip to content

Commit

Permalink
Remove inline string creation to fix nullability errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joelekstrom committed Jun 19, 2017
1 parent 792a0db commit c90b59f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SPTPersistentCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,8 @@ - (NSMutableArray *)storedImageNamesAndAttributes
NSNumber *fsize = [NSNumber numberWithLongLong:fileStat.st_size];
NSDictionary *values = @{NSFileModificationDate : mdate, NSFileSize: fsize};

[images addObject:@{ SPTDataCacheFileNameKey : [NSString stringWithUTF8String:[theURL fileSystemRepresentation]],
NSString *cacheFilename = [NSString stringWithUTF8String:[theURL fileSystemRepresentation]];
[images addObject:@{ SPTDataCacheFileNameKey : cacheFilename,
SPTDataCacheFileAttributesKey : values }];
}
} else {
Expand Down

0 comments on commit c90b59f

Please sign in to comment.