Page MenuHomePhorge

D25586.1732040743.diff
No OneTemporary

D25586.1732040743.diff

diff --git a/src/applications/herald/management/HeraldTestManagementWorkflow.php b/src/applications/herald/management/HeraldTestManagementWorkflow.php
--- a/src/applications/herald/management/HeraldTestManagementWorkflow.php
+++ b/src/applications/herald/management/HeraldTestManagementWorkflow.php
@@ -30,7 +30,7 @@
$viewer = $this->getViewer();
$object_name = $args->getArg('object');
- if (!strlen($object_name)) {
+ if (!phutil_nonempty_string($object_name)) {
throw new PhutilArgumentUsageException(
pht('Specify an object to test rules for with "--object".'));
}
@@ -69,7 +69,7 @@
$content_type = $args->getArg('type');
- if (!strlen($content_type)) {
+ if (!phutil_nonempty_string($content_type)) {
throw new PhutilArgumentUsageException(
pht(
'Specify a content type to run rules for. For this object, valid '.

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 18:25 (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
978422
Default Alt Text
D25586.1732040743.diff (901 B)

Event Timeline