Don't add zero for readability

This commit is contained in:
Garrett Moon 2016-05-12 14:44:54 -07:00
parent 7901a985e3
commit 72d7b57abb

View File

@ -39,8 +39,8 @@ ASVisibilityDepthImplementation;
NSAssert(viewControllerIndex != NSNotFound, @"childViewController is not in the navigation stack."); NSAssert(viewControllerIndex != NSNotFound, @"childViewController is not in the navigation stack.");
if (viewControllerIndex == self.viewControllers.count - 1) { if (viewControllerIndex == self.viewControllers.count - 1) {
//view controller is at the top //view controller is at the top, just return our own visibility depth.
return [self visibilityDepth] + 0; return [self visibilityDepth];
} else if (viewControllerIndex == 0) { } else if (viewControllerIndex == 0) {
//view controller is the root view controller. Can be accessed by holding the back button. //view controller is the root view controller. Can be accessed by holding the back button.
return [self visibilityDepth] + 1; return [self visibilityDepth] + 1;