Skip to content

Commit

Permalink
Fix the grammar in an assertion failure message (#270)
Browse files Browse the repository at this point in the history
Also wrap a conditional block in brackets for consistency with the rest
of this file.
  • Loading branch information
jparise committed Apr 28, 2020
1 parent 078f994 commit 9f601cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/PINDiskCache.m
Expand Up @@ -185,15 +185,15 @@ - (instancetype)initWithName:(NSString *)name
operationQueue:(PINOperationQueue *)operationQueue
ttlCache:(BOOL)ttlCache
{
if (!name)
if (!name) {
return nil;

}

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

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

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

0 comments on commit 9f601cc

Please sign in to comment.