diff --git a/PBWebHistoryController.m b/PBWebHistoryController.m index 5d1bd47..70bdb7a 100644 --- a/PBWebHistoryController.m +++ b/PBWebHistoryController.m @@ -88,9 +88,7 @@ NSArray *refsA=[historyController.webCommit refs]; NSString *currentRef=[[[historyController repository] headRef] simpleRef]; NSString *style=@""; - int r=0; - for(r=0;r<[refsA count];r++){ - PBGitRef *ref=[refsA objectAtIndex:r]; + for(PBGitRef *ref in refsA){ if([currentRef isEqualToString:[ref ref]]){ style=[NSString stringWithFormat:@"currentBranch refs %@",[ref type]]; }else{