Merge pull request #10109 from developerbmw/patch-1
remove unnecessary use of ternary operator
This commit is contained in:
commit
ba5b7d6251
|
@ -153,7 +153,7 @@ abstract class WC_Payment_Gateway extends WC_Settings_API {
|
|||
*/
|
||||
public function is_available() {
|
||||
|
||||
$is_available = ( 'yes' === $this->enabled ) ? true : false;
|
||||
$is_available = ( 'yes' === $this->enabled );
|
||||
|
||||
if ( WC()->cart && 0 < $this->get_order_total() && 0 < $this->max_amount && $this->max_amount < $this->get_order_total() ) {
|
||||
$is_available = false;
|
||||
|
|
Loading…
Reference in New Issue