Page MenuHomePhorge

D25579.1737335567.diff
No OneTemporary

D25579.1737335567.diff

diff --git a/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php b/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php
--- a/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php
+++ b/src/applications/files/management/PhabricatorFilesManagementGenerateKeyWorkflow.php
@@ -20,7 +20,7 @@
public function execute(PhutilArgumentParser $args) {
$type = $args->getArg('type');
- if (!strlen($type)) {
+ if (!phutil_nonempty_string($type)) {
throw new PhutilArgumentUsageException(
pht(
'Specify the type of key to generate with --type.'));

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 01:12 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1135398
Default Alt Text
D25579.1737335567.diff (673 B)

Event Timeline