Skip to content

Commit 9ed326f

Browse files
nylenschlessera
andauthored
Clarify conditional
Co-Authored-By: Alain Schlesser <alain.schlesser@gmail.com>
1 parent 4b330bf commit 9ed326f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Core_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function download( $args, $assoc_args ) {
159159
list( $download_url ) = $args;
160160
$from_url = ! empty( $download_url );
161161

162-
if ( ! empty( $args[0] ) ) {
162+
if ( $from_url ) {
163163
// URL is given
164164
$version = null;
165165
$from_url = true;

0 commit comments

Comments
 (0)