Skip to content

Commit 800a143

Browse files
David CatmullDavid Catmull
authored andcommitted
modernize loop
1 parent e1836bb commit 800a143

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PBWebHistoryController.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ - (void)commitDetailsLoaded:(NSNotification *)notification
8888
NSArray *refsA=[historyController.webCommit refs];
8989
NSString *currentRef=[[[historyController repository] headRef] simpleRef];
9090
NSString *style=@"";
91-
int r=0;
92-
for(r=0;r<[refsA count];r++){
93-
PBGitRef *ref=[refsA objectAtIndex:r];
91+
for(PBGitRef *ref in refsA){
9492
if([currentRef isEqualToString:[ref ref]]){
9593
style=[NSString stringWithFormat:@"currentBranch refs %@",[ref type]];
9694
}else{

0 commit comments

Comments
 (0)