Skip to content

Commit e31ffaf

Browse files
committed
MAGETWO-51890: Fix unreliable implementation
1 parent 5110917 commit e31ffaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Model/ShippingInformationManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private function prepareShippingAssignment(CartInterface $quote, AddressInterfac
199199
}
200200

201201
$shippingAssignments = $cartExtension->getShippingAssignments();
202-
if ($shippingAssignments === null || empty($shippingAssignments)) {
202+
if (empty($shippingAssignments)) {
203203
$shippingAssignment = $this->getShippingAssignmentFactory()->create();
204204
} else {
205205
$shippingAssignment = $shippingAssignments[0];

0 commit comments

Comments
 (0)