Skip to content

Commit

Permalink
wp ai remove exception in favor of empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
junaidbhura committed Dec 15, 2022
1 parent 7f536c2 commit 65809ca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/WpAiPro.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

namespace Junaidbhura\Composer\WPProPlugins\Plugins;

use Exception;
use Junaidbhura\Composer\WPProPlugins\Http;

/**
Expand Down Expand Up @@ -101,9 +100,9 @@ public function getDownloadUrl() {
) ), true );
if ( ! empty( $response['download_link'] ) ) {
return $response['download_link'];
} else {
throw new Exception( 'Invalid download link for ' . $name );
}

return '';
}

}

0 comments on commit 65809ca

Please sign in to comment.