Skip to content

Commit c90b59f

Browse files
committed
Remove inline string creation to fix nullability errors
1 parent 792a0db commit c90b59f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/SPTPersistentCache.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,8 @@ - (NSMutableArray *)storedImageNamesAndAttributes
10481048
NSNumber *fsize = [NSNumber numberWithLongLong:fileStat.st_size];
10491049
NSDictionary *values = @{NSFileModificationDate : mdate, NSFileSize: fsize};
10501050

1051-
[images addObject:@{ SPTDataCacheFileNameKey : [NSString stringWithUTF8String:[theURL fileSystemRepresentation]],
1051+
NSString *cacheFilename = [NSString stringWithUTF8String:[theURL fileSystemRepresentation]];
1052+
[images addObject:@{ SPTDataCacheFileNameKey : cacheFilename,
10521053
SPTDataCacheFileAttributesKey : values }];
10531054
}
10541055
} else {

0 commit comments

Comments
 (0)