From 0b5591747f312dd3a34d84ddbb43131e09f2d279 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 16 Jul 2015 10:41:08 +0300 Subject: [PATCH] removed merge timespans check --- engine/callcost.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/engine/callcost.go b/engine/callcost.go index acfa8c525..238619491 100644 --- a/engine/callcost.go +++ b/engine/callcost.go @@ -36,10 +36,6 @@ type CallCost struct { // Merges the received timespan if they are similar (same activation period, same interval, same minute info. func (cc *CallCost) Merge(other *CallCost) { - if len(cc.Timespans)-1 < 0 || len(other.Timespans) == 0 { - return - } - // just add all timespans cc.Timespans = append(cc.Timespans, other.Timespans...) cc.Cost += other.Cost }