Skip to content

Commit 469bbe6

Browse files
committed
Fix formatting of macros
1 parent 8932980 commit 469bbe6

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

TMCache/TMDiskCache.m

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#import "TMDiskCache.h"
22

3-
#define TMDiskCacheError(error) if (error) { NSLog(@"%@ (%d) ERROR: %@", \
4-
[[NSString stringWithUTF8String:__FILE__] lastPathComponent], \
5-
__LINE__, [error localizedDescription]); }
3+
#define TMDiskCacheError(error) \
4+
if (error) { NSLog(@"%@ (%d) ERROR: %@", \
5+
[[NSString stringWithUTF8String:__FILE__] lastPathComponent], \
6+
__LINE__, [error localizedDescription]); \
7+
}
68

79
#define TMCacheStartBackgroundTask() \
8-
UIBackgroundTaskIdentifier taskID = UIBackgroundTaskInvalid; \
9-
taskID = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^{ \
10-
[[UIApplication sharedApplication] endBackgroundTask:taskID]; \
11-
}];
10+
UIBackgroundTaskIdentifier taskID = UIBackgroundTaskInvalid; \
11+
taskID = [[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:^{ \
12+
[[UIApplication sharedApplication] endBackgroundTask:taskID]; \
13+
}];
1214
#define TMCacheEndBackgroundTask() \
13-
[[UIApplication sharedApplication] endBackgroundTask:taskID];
15+
[[UIApplication sharedApplication] endBackgroundTask:taskID];
1416

1517
static NSString * const TMDiskCachePrefix = @"com.tumblr.TMDiskCache";
1618
static NSString * const TMDiskCacheSharedName = @"TMDiskCacheShared";

0 commit comments

Comments
 (0)