Skip to content

Commit

Permalink
Okay, fine, doing this without a variable to now, sigh
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldev committed Dec 28, 2017
1 parent cb71ca8 commit 930608d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions JLRoutes/Classes/JLRParsingUtilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ + (NSDictionary *)queryParams:(NSDictionary *)queryParams decodePlusSymbols:(BOO
NSString *preOptionalSubpath = nil;
BOOL didScan = [scanner scanUpToString:@"(" intoString:&preOptionalSubpath];
if (!didScan) {
unichar currentChar = [routePattern characterAtIndex:scanner.scanLocation];
NSAssert(currentChar == '(', @"Unexpected character: %@", [NSString stringWithCharacters:&currentChar length:1]);
NSAssert([routePattern characterAtIndex:scanner.scanLocation] == '(', @"Unexpected character: %c", [routePattern characterAtIndex:scanner.scanLocation]);
}

if (!scanner.isAtEnd) {
Expand Down

0 comments on commit 930608d

Please sign in to comment.