1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-29 02:02:40 +01:00

Always return an array from ArcanistWorkflow->loadProjectRepository()

Summary: Fixes T8344. Prior to D12971, this always returned `array()`. It may now sometimes return `null`. Switch the behavior to be more similar to the old behavior.

Test Plan: Inspection.

Reviewers: btrahan, joshuaspence

Reviewed By: joshuaspence

Subscribers: epriestley

Maniphest Tasks: T8344

Differential Revision: https://secure.phabricator.com/D13061
This commit is contained in:
epriestley 2015-05-28 16:10:59 -07:00
parent 8fe013b0ec
commit cdaa0e32e4

View file

@ -1558,7 +1558,7 @@ abstract class ArcanistWorkflow extends Phobject {
final protected function loadProjectRepository() { final protected function loadProjectRepository() {
list($info, $reasons) = $this->loadRepositoryInformation(); list($info, $reasons) = $this->loadRepositoryInformation();
return $info; return coalesce($info, array());
} }
final protected function newInteractiveEditor($text) { final protected function newInteractiveEditor($text) {