Skip to content

Commit 9f601cc

Browse files
authored
Fix the grammar in an assertion failure message (#270)
Also wrap a conditional block in brackets for consistency with the rest of this file.
1 parent 078f994 commit 9f601cc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/PINDiskCache.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ - (instancetype)initWithName:(NSString *)name
185185
operationQueue:(PINOperationQueue *)operationQueue
186186
ttlCache:(BOOL)ttlCache
187187
{
188-
if (!name)
188+
if (!name) {
189189
return nil;
190-
190+
}
191191

192192
NSAssert(((!serializer && !deserializer) || (serializer && deserializer)),
193193
@"PINDiskCache must be initialized with a serializer AND deserializer.");
194194

195195
NSAssert(((!keyEncoder && !keyDecoder) || (keyEncoder && keyDecoder)),
196-
@"PINDiskCache must be initialized with a encoder AND decoder.");
196+
@"PINDiskCache must be initialized with an encoder AND decoder.");
197197

198198
if (self = [super init]) {
199199
__unused int result = pthread_mutex_init(&_mutex, NULL);

0 commit comments

Comments
 (0)