Skip to content

Commit

Permalink
Fix lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand-soprex committed Aug 29, 2024
1 parent 00d0e07 commit 9005c11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Model/Nosto/Entity/Product/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ public function build(SalesChannelProductEntity $product, SalesChannelContext $c
}

if($product->getChildren()) {
if ($this->configProvider->isEnabledVariations($channelId, $languageId) && $product->getChildren()->count())
{
if ($this->configProvider->isEnabledVariations($channelId, $languageId) && $product->getChildren()->count()) {
$skuCollection = $this->preparingChildrenSkuCollection($product, $context);

$nostoProduct->setSkus($skuCollection);
Expand Down

0 comments on commit 9005c11

Please sign in to comment.