Page MenuHomePhorge

D25584.1732033700.diff
No OneTemporary

D25584.1732033700.diff

diff --git a/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php b/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
--- a/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
+++ b/src/applications/conduit/management/PhabricatorConduitCallManagementWorkflow.php
@@ -41,19 +41,19 @@
$viewer = $this->getViewer();
$method = $args->getArg('method');
- if (!strlen($method)) {
+ if (!phutil_nonempty_string($method)) {
throw new PhutilArgumentUsageException(
pht('Specify a method to call with "--method".'));
}
$input = $args->getArg('input');
- if (!strlen($input)) {
+ if (!phutil_nonempty_string($input)) {
throw new PhutilArgumentUsageException(
pht('Specify a file to read parameters from with "--input".'));
}
$as = $args->getArg('as');
- if (strlen($as)) {
+ if (phutil_nonempty_string($as)) {
$actor = id(new PhabricatorPeopleQuery())
->setViewer($viewer)
->withUsernames(array($as))

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 16:28 (20 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
978004
Default Alt Text
D25584.1732033700.diff (1 KB)

Event Timeline