diff --git a/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php b/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php index d5dfb265b..93c22a6ce 100644 --- a/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php +++ b/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php @@ -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' ); } }