Improve the code

This commit is contained in:
Narek Zakarian 2022-08-19 16:25:31 +04:00
parent 62d96cba8a
commit 9096a9f111

View file

@ -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' );
}
}