mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Simplify code by not passing local data to methods
This commit is contained in:
parent
48077c80f2
commit
02694d73ab
1 changed files with 3 additions and 4 deletions
|
@ -71,7 +71,7 @@ EOTEXT
|
||||||
throw new ArcanistUsageException('No branches in this working copy.');
|
throw new ArcanistUsageException('No branches in this working copy.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$branches = $this->loadCommitInfo($branches, $repository_api);
|
$branches = $this->loadCommitInfo($branches);
|
||||||
|
|
||||||
$revisions = $this->loadRevisions($branches);
|
$revisions = $this->loadRevisions($branches);
|
||||||
|
|
||||||
|
@ -80,9 +80,8 @@ EOTEXT
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function loadCommitInfo(
|
private function loadCommitInfo(array $branches) {
|
||||||
array $branches,
|
$repository_api = $this->getRepositoryAPI();
|
||||||
ArcanistRepositoryAPI $repository_api) {
|
|
||||||
|
|
||||||
$futures = array();
|
$futures = array();
|
||||||
foreach ($branches as $branch) {
|
foreach ($branches as $branch) {
|
||||||
|
|
Loading…
Reference in a new issue