Skip to content

Commit

Permalink
Fixed a warning in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
CooperRS committed Jun 20, 2015
1 parent ef56805 commit acf72c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RMActionController/RMActionController.m
Original file line number Diff line number Diff line change
Expand Up @@ -957,9 +957,9 @@ + (instancetype)actionWithStyle:(RMActionStyle)style andActions:(NSArray *)actio
NSAssert([actions count] > 0, @"Tried to initialize RMGroupedAction with less than one action.");
NSAssert([actions count] > 1, @"Tried to initialize RMGroupedAction with one action. Use RMAction in this case.");

for(NSObject *anObject in actions) {
NSAssert([anObject isKindOfClass:[RMAction class]], @"Tried to initialize RMGroupedAction with objects of types other than RMAction.");
}
[actions enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
NSAssert([obj isKindOfClass:[RMAction class]], @"Tried to initialize RMGroupedAction with objects of types other than RMAction.");
}];

RMGroupedAction *groupedAction = [[RMGroupedAction alloc] init];
groupedAction.style = style;
Expand Down

0 comments on commit acf72c4

Please sign in to comment.