Not strictly necessary, of course. Reads fine either way.


On Tue, Jan 14, 2014 at 11:25 AM, Alexey Denisov
<notifications@github.com>wrote:

> In Source/Doubles/CDRProtocolFake.mm:
>
> > @@ -60,6 +60,16 @@ - (BOOL)respondsToSelector:(SEL)selector {
> >      return NO;
> >  }
> >
> > +- (void)doesNotRecognizeSelector:(SEL)selector {
> > +    if ([self has_rejected_method_for:selector]) {
> > +        NSString *reason = [NSString stringWithFormat:@"Received message with explicitly rejected selector <%@>", NSStringFromSelector(selector)];
> > +        [[NSException exceptionWithName:NSInvalidArgumentException reason:reason userInfo:nil] raise];
> > +    }
> > +    else {
> > +        [super doesNotRecognizeSelector:selector];
> > +    }
>
> else and braces look excessive. don't you think so?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pivotal/cedar/pull/167/files#r8872103>
> .
>