AXO: Simplify the is_compatible_shipping_config() condition

This commit is contained in:
Daniel Dudzic 2024-08-01 18:47:45 +02:00
parent eab4f64a46
commit 3488e6f6f3
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -409,6 +409,6 @@ class AxoModule implements ModuleInterface {
* @return bool
*/
private function is_compatible_shipping_config(): bool {
return ! wc_shipping_enabled() || ( wc_shipping_enabled() && ! wc_ship_to_billing_address_only() );
return ! wc_shipping_enabled() || ! wc_ship_to_billing_address_only();
}
}