Skip to content

Commit

Permalink
GraphQl-972: removed redundant else
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Boyko committed Sep 27, 2019
1 parent 3489da5 commit 63bd232
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,16 @@ protected function _setConfigValue($configPath, $value, $storeCode = false)
$value,
ScopeConfigInterface::SCOPE_TYPE_DEFAULT
);
} else {
\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
\Magento\TestFramework\App\ApiMutableScopeConfig::class
)->setValue(
$configPath,
$value,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);

return;
}
\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
\Magento\TestFramework\App\ApiMutableScopeConfig::class
)->setValue(
$configPath,
$value,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);
}
}

0 comments on commit 63bd232

Please sign in to comment.