vendor/Pods/NanoStore/Classes/Public/NSFNanoExpression.m in nano-store-0.3.8 vs vendor/Pods/NanoStore/Classes/Public/NSFNanoExpression.m in nano-store-0.3.9

- old
+ new

@@ -37,23 +37,19 @@ @synthesize predicates, operators; + (NSFNanoExpression*)expressionWithPredicate:(NSFNanoPredicate *)aPredicate { - if (nil == aPredicate) - [[NSException exceptionWithName:NSFUnexpectedParameterException - reason:[NSString stringWithFormat:@"*** -[%@ %s]: the predicate is nil.", [self class], _cmd] - userInfo:nil]raise]; - return [[self alloc]initWithPredicate:aPredicate]; } - (id)initWithPredicate:(NSFNanoPredicate *)aPredicate { - if (nil == aPredicate) + if (nil == aPredicate) { [[NSException exceptionWithName:NSFUnexpectedParameterException reason:[NSString stringWithFormat:@"*** -[%@ %s]: the predicate is nil.", [self class], _cmd] userInfo:nil]raise]; + } if ((self = [super init])) { predicates = [NSMutableArray new]; [predicates addObject:aPredicate]; operators = [NSMutableArray new]; \ No newline at end of file