mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 15:48:44 +05:00
Add comments where errors are not handled explicity
This commit is contained in:
committed by
Dan Christian Bogos
parent
34d17d0307
commit
2700d58c0f
@@ -183,6 +183,8 @@ func (rS *RateS) rateProfileCostForEvent(rtPfl *engine.RateProfile, args *utils.
|
||||
if rpCost.RateSIntervals, err = computeRateSIntervals(ordRts, 0, usage); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// in case we have error it is returned in the function from above
|
||||
// this came to light in coverage tests
|
||||
rpCost.Cost, _ = engine.CostForIntervals(rpCost.RateSIntervals).Float64()
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user