Skip to content

Commit

Permalink
fix: remove not necessary variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DEMAxx committed Jun 18, 2024
1 parent c088039 commit e5683a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Helpers/DeliveryCalc.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ static function ($carry, $item) use ($package) {
$deliveryParam['type'] = Tariff::getTariffType($deliveryParam['tariff_code']);

$serviceList = Helper::getServices($deliveryMethod, $deliveryParam['tariff_code']);

if (!empty($serviceList)) {
$deliveryParam['services'] = $serviceList;
$deliveryParam['services'] = array_merge($serviceList, $deliveryParam['services']);
}

$tariffInfo = $api->calculateTariff($deliveryParam);
Expand Down

0 comments on commit e5683a1

Please sign in to comment.