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

Enable shell completion without set aliases

Summary:
Otherwise it says after hitting Tab everytime:

> Warning:  Invalid argument supplied for foreach() in arcanist/src/workflow/shell-complete/ArcanistShellCompleteWorkflow.php on line 99

Test Plan: arc h<Tab>

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley

Differential Revision: https://secure.phabricator.com/D1766
This commit is contained in:
vrana 2012-03-03 23:26:16 -08:00
parent 075c4f84d4
commit 50cedc67ff

View file

@ -59,7 +59,7 @@ EOTEXT
public static function getAliases() {
$config = self::readUserConfigurationFile();
return idx($config, 'aliases');
return idx($config, 'aliases', array());
}
private function writeAliases(array $aliases) {