[2.0] Simplifying code.
This commit is contained in:
parent
8ccb7df1bb
commit
01147039d4
@ -61,9 +61,7 @@ class ECommerceCart
|
||||
if ($this->customer !== null) {
|
||||
$customer = $this->customer;
|
||||
$this->customer = null;
|
||||
if ($customer->getCart() !== null) {
|
||||
$customer->removeCart();
|
||||
}
|
||||
$customer->removeCart();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,9 +68,7 @@ class ECommerceCustomer
|
||||
if ($this->cart !== null) {
|
||||
$cart = $this->cart;
|
||||
$this->cart = null;
|
||||
if ($cart->getCustomer() !== null) {
|
||||
$cart->removeCustomer();
|
||||
}
|
||||
$cart->removeCustomer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user