Skip to content

Commit

Permalink
Merge pull request #18 from akash-mudubagilu/patch-1
Browse files Browse the repository at this point in the history
Update HHRouter.m
  • Loading branch information
lightory committed Dec 30, 2015
2 parents 906a0aa + 213aa4d commit 0fedcb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions HHRouter/HHRouter.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ - (UIViewController *)match:(NSString *)route
- (HHRouterBlock)matchBlock:(NSString *)route
{
NSDictionary *params = [self paramsInRoute:route];

if (!params){
return nil;
}

HHRouterBlock routerBlock = [params[@"block"] copy];
HHRouterBlock returnBlock = ^id(NSDictionary *aParams) {
if (routerBlock) {
Expand Down

0 comments on commit 0fedcb4

Please sign in to comment.