Skip to content

Commit 63bd232

Browse files
author
Vitaliy Boyko
committed
GraphQl-972: removed redundant else
1 parent 3489da5 commit 63bd232

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

dev/tests/api-functional/framework/Magento/TestFramework/Annotation/ApiConfigFixture.php

+10-9
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,16 @@ protected function _setConfigValue($configPath, $value, $storeCode = false)
172172
$value,
173173
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
174174
);
175-
} else {
176-
\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
177-
\Magento\TestFramework\App\ApiMutableScopeConfig::class
178-
)->setValue(
179-
$configPath,
180-
$value,
181-
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
182-
$storeCode
183-
);
175+
176+
return;
184177
}
178+
\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
179+
\Magento\TestFramework\App\ApiMutableScopeConfig::class
180+
)->setValue(
181+
$configPath,
182+
$value,
183+
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
184+
$storeCode
185+
);
185186
}
186187
}

0 commit comments

Comments
 (0)