Skip to content

Commit 930608d

Browse files
committed
Okay, fine, doing this without a variable to now, sigh
1 parent cb71ca8 commit 930608d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

JLRoutes/Classes/JLRParsingUtilities.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ + (NSDictionary *)queryParams:(NSDictionary *)queryParams decodePlusSymbols:(BOO
179179
NSString *preOptionalSubpath = nil;
180180
BOOL didScan = [scanner scanUpToString:@"(" intoString:&preOptionalSubpath];
181181
if (!didScan) {
182-
unichar currentChar = [routePattern characterAtIndex:scanner.scanLocation];
183-
NSAssert(currentChar == '(', @"Unexpected character: %@", [NSString stringWithCharacters:&currentChar length:1]);
182+
NSAssert([routePattern characterAtIndex:scanner.scanLocation] == '(', @"Unexpected character: %c", [routePattern characterAtIndex:scanner.scanLocation]);
184183
}
185184

186185
if (!scanner.isAtEnd) {

0 commit comments

Comments
 (0)