mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Improve the code
This commit is contained in:
parent
62d96cba8a
commit
9096a9f111
1 changed files with 1 additions and 5 deletions
|
@ -107,10 +107,6 @@ class PayUponInvoiceHelper {
|
|||
* @throws NotFoundException If problem when checking the settings.
|
||||
*/
|
||||
public function is_pui_enabled(): bool {
|
||||
if ( $this->settings->has( 'products_pui_enabled' ) && $this->settings->get( 'products_pui_enabled' ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return $this->settings->has( 'products_pui_enabled' ) && $this->settings->get( 'products_pui_enabled' );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue