Merge pull request #10109 from developerbmw/patch-1

remove unnecessary use of ternary operator
This commit is contained in:
Claudio Sanches 2016-01-19 21:59:58 -02:00
commit ba5b7d6251
1 changed files with 1 additions and 1 deletions

View File

@ -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;