Skip to content

Commit

Permalink
Adhering to coding style
Browse files Browse the repository at this point in the history
- also added new line at the end of SDImageCacheTests.m file
  • Loading branch information
Mutix committed Feb 4, 2016
1 parent 6e1b2aa commit 68ae502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion SDWebImage/SDImageCache.m
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ - (void)storeImage:(UIImage *)image forKey:(NSString *)key toDisk:(BOOL)toDisk {

- (void)storeImageDataToDisk:(NSData *)imageData forKey:(NSString *)key {

if (!imageData) return;
if (!imageData) {
return;
}

if (![_fileManager fileExistsAtPath:_diskCachePath]) {
[_fileManager createDirectoryAtPath:_diskCachePath withIntermediateDirectories:YES attributes:nil error:NULL];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/SDImageCacheTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,4 @@ - (NSString *)testImagePath {
return [testBundle pathForResource:@"TestImage" ofType:@"jpg"];
}

@end
@end

0 comments on commit 68ae502

Please sign in to comment.