mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
modernize loop
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user