Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/util/AlmanacKeys.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | if (!$device) { | ||||
$cache->setKey($cache_key, $device); | $cache->setKey($cache_key, $device); | ||||
} | } | ||||
return $device; | return $device; | ||||
} | } | ||||
public static function getClusterSSHUser() { | public static function getClusterSSHUser() { | ||||
$username = PhabricatorEnv::getEnvConfig('diffusion.ssh-user'); | $username = PhabricatorEnv::getEnvConfig('diffusion.ssh-user'); | ||||
if (strlen($username)) { | if ($username !== null && strlen($username)) { | ||||
return $username; | return $username; | ||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
} | } |