mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
Retrieve the Accounting BalanceCharge inside a new variable and reuse that instead of repeatedly indexing the map. It is always assumed that the BalanceCharge exists in the map and is non-nil. A comment was added as a reminder. TotalCost cannot be calculated anymore from ChargingIncrement alone. The function is not used, so it will not be causing any issues for now. BalanceCharge clone function now handles the case where it is nil to avoid any possible nil pointer dereference.
26 KiB
26 KiB