Skip to content

Commit

Permalink
No more warning when compiling with noop NSAssert
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Dec 15, 2010
1 parent be39647 commit 925c45c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/GRMustacheTemplateParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ - (BOOL)tokenizer:(GRMustacheTokenizer *)tokenizer shouldContinueAfterParsingTok
if ([token.content isEqualToString:currentSectionOpeningToken.content]) {
NSRange currentSectionOpeningTokenRange = currentSectionOpeningToken.range;
NSString *sectionOpeningTemplateString = currentSectionOpeningToken.templateString;
NSString *sectionClosingTemplateString = token.templateString;
NSAssert(sectionOpeningTemplateString == sectionClosingTemplateString, @"not implemented");
NSAssert(sectionOpeningTemplateString == token.templateString, @"not implemented");
NSString *sectionString = [sectionOpeningTemplateString substringWithRange:NSMakeRange(currentSectionOpeningTokenRange.location + currentSectionOpeningTokenRange.length, token.range.location - currentSectionOpeningTokenRange.location - currentSectionOpeningTokenRange.length)];
GRMustacheSection *section = [GRMustacheSection sectionElementWithName:currentSectionOpeningToken.content
string:sectionString
Expand Down

0 comments on commit 925c45c

Please sign in to comment.