Skip to content

Commit f08d839

Browse files
ACQE-8324: Using rest api update guest cart of configurable product
- Fixed unused variables issues
1 parent 9c9ca87 commit f08d839

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dev/tests/api-functional/testsuite/Magento/Quote/Api/GuestCartConfigurableItemRepositoryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,11 +230,10 @@ private function getConfigurableProduct(): ProductInterface
230230
*/
231231
private function getConfigurableOptionData(ProductInterface $configurableProduct): array
232232
{
233-
$selectedOption = null;
234233
$configOptions = $configurableProduct->getExtensionAttributes()->getConfigurableProductOptions();
235234

236235
$options = $configOptions[0]->getOptions();
237-
$optionKey = (isset($selectedOption) && isset($options[null])) ? null : 0;
236+
$optionKey = isset($options[null]) ? null : 0;
238237

239238
return [
240239
'attribute_id' => $configOptions[0]->getAttributeId(),

0 commit comments

Comments
 (0)