Page MenuHomePhorge

D25586.1734745660.diff
No OneTemporary

D25586.1734745660.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
Sat, Dec 21, 01:47 (11 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1021600
Default Alt Text
D25586.1734745660.diff (901 B)

Event Timeline