Skip to content

Commit 98e3ad2

Browse files
committed
Fixed warnings
1 parent d22c502 commit 98e3ad2

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

JLRoutes/JLRoutes.m

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -274,33 +274,31 @@ + (instancetype)routesForScheme:(NSString *)scheme {
274274
}
275275

276276

277-
+ (void)addRoute:(NSString *)routePattern handler:(BOOL (^)(NSDictionary<NSString *, NSString *> *parameters))handlerBlock {
277+
+ (void)addRoute:(NSString *)routePattern handler:(BOOL (^)(NSDictionary<NSString *, id> *parameters))handlerBlock {
278278
[[self globalRoutes] addRoute:routePattern handler:handlerBlock];
279279
}
280280

281-
+ (void)addRoutes:(NSArray<NSString *> *)routePatterns handler:(BOOL (^)(NSDictionary<NSString *, NSString *> *parameters))handlerBlock {
281+
+ (void)addRoutes:(NSArray<NSString *> *)routePatterns handler:(BOOL (^)(NSDictionary<NSString *, id> *parameters))handlerBlock {
282282
for (NSString *routePattern in routePatterns) {
283283
[self addRoute:routePattern handler:handlerBlock];
284284
}
285285
}
286286

287-
288-
+ (void)addRoute:(NSString *)routePattern priority:(NSUInteger)priority handler:(BOOL (^)(NSDictionary<NSString *, NSString *> *parameters))handlerBlock {
287+
+ (void)addRoute:(NSString *)routePattern priority:(NSUInteger)priority handler:(BOOL (^)(NSDictionary<NSString *, id> *parameters))handlerBlock {
289288
[[self globalRoutes] addRoute:routePattern priority:priority handler:handlerBlock];
290289
}
291290

292-
- (void)addRoute:(NSString *)routePattern handler:(BOOL (^)(NSDictionary<NSString *, NSString *> *parameters))handlerBlock {
291+
- (void)addRoute:(NSString *)routePattern handler:(BOOL (^)(NSDictionary<NSString *, id> *parameters))handlerBlock {
293292
[self addRoute:routePattern priority:0 handler:handlerBlock];
294293
}
295294

296-
- (void)addRoutes:(NSArray<NSString *> *)routePatterns handler:(BOOL (^)(NSDictionary<NSString *, NSString *> *parameters))handlerBlock {
295+
- (void)addRoutes:(NSArray<NSString *> *)routePatterns handler:(BOOL (^)(NSDictionary<NSString *, id> *parameters))handlerBlock {
297296
for (NSString *routePattern in routePatterns) {
298297
[self addRoute:routePattern handler:handlerBlock];
299298
}
300299
}
301300

302-
303-
- (void)addRoute:(NSString *)routePattern priority:(NSUInteger)priority handler:(BOOL (^)(NSDictionary<NSString *, NSString *> *parameters))handlerBlock {
301+
- (void)addRoute:(NSString *)routePattern priority:(NSUInteger)priority handler:(BOOL (^)(NSDictionary<NSString *, id> *parameters))handlerBlock {
304302
// if there's a pair of parenthesis, process optionals, trim the parenthesis, put it on trimmedRoute
305303
NSString *trimmedRoute = routePattern;
306304

0 commit comments

Comments
 (0)