Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Reorder if statement to avoid nullability warning. (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianegordon authored and jverkoey committed Oct 23, 2017
1 parent d583d94 commit 0406d3c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/private/MDMViewControllerTransitionCoordinator.m
Expand Up @@ -255,14 +255,10 @@ - (instancetype)initWithTransition:(NSObject<MDMTransition> *)transition
if ([transition respondsToSelector:@selector(canPerformTransitionWithContext:)]) {
id<MDMTransitionWithFeasibility> withFeasibility = (id<MDMTransitionWithFeasibility>)transition;
if (![withFeasibility canPerformTransitionWithContext:_root]) {
transition = nil;
self = nil;
return nil; // No active transitions means no need for a coordinator.
}
}

if (!transition) {
self = nil;
return nil; // No active transitions means no need for a coordinator.
}
}
return self;
}
Expand Down

0 comments on commit 0406d3c

Please sign in to comment.