From 800a143b048ccfb6aaa49228fd173d17742ca872 Mon Sep 17 00:00:00 2001 From: David Catmull Date: Sun, 5 Jun 2011 17:11:53 -0600 Subject: [PATCH] modernize loop --- PBWebHistoryController.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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{