mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42: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.');
|
||||
}
|
||||
|
||||
$branches = $this->loadCommitInfo($branches, $repository_api);
|
||||
$branches = $this->loadCommitInfo($branches);
|
||||
|
||||
$revisions = $this->loadRevisions($branches);
|
||||
|
||||
|
@ -80,9 +80,8 @@ EOTEXT
|
|||
return 0;
|
||||
}
|
||||
|
||||
private function loadCommitInfo(
|
||||
array $branches,
|
||||
ArcanistRepositoryAPI $repository_api) {
|
||||
private function loadCommitInfo(array $branches) {
|
||||
$repository_api = $this->getRepositoryAPI();
|
||||
|
||||
$futures = array();
|
||||
foreach ($branches as $branch) {
|
||||
|
|
Loading…
Reference in a new issue