From 2700d58c0fd59a85ed9091c9d595d2a8c7aecdaa Mon Sep 17 00:00:00 2001 From: TeoV Date: Tue, 19 Jan 2021 09:40:45 +0200 Subject: [PATCH] Add comments where errors are not handled explicity --- rates/rates.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rates/rates.go b/rates/rates.go index de8003eeb..c41a36c0d 100644 --- a/rates/rates.go +++ b/rates/rates.go @@ -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