From 516a8331aec861feedbe6aace6aa305596f9e4a5 Mon Sep 17 00:00:00 2001 From: TeoV Date: Fri, 26 Jan 2018 10:42:30 +0200 Subject: [PATCH] Clean the code --- apier/v1/attributes_it_test.go | 4 ++-- engine/attributes.go | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/apier/v1/attributes_it_test.go b/apier/v1/attributes_it_test.go index 60362dfa6..83a83abdd 100644 --- a/apier/v1/attributes_it_test.go +++ b/apier/v1/attributes_it_test.go @@ -225,8 +225,8 @@ func testAttributeSProcessEvent(t *testing.T) { t.Error(err) } else if !reflect.DeepEqual(eRply, &rplyEv) && !reflect.DeepEqual(eRply2, &rplyEv) { // second for reversed order of attributes - t.Errorf("Expecting: %s, Expecting: %s, received: %s", - utils.ToJSON(eRply), utils.ToJSON(eRply2), utils.ToJSON(rplyEv)) + t.Errorf("Expecting: %s, received: %s", + utils.ToJSON(eRply), utils.ToJSON(rplyEv)) } } diff --git a/engine/attributes.go b/engine/attributes.go index f6822171d..3672d06ae 100644 --- a/engine/attributes.go +++ b/engine/attributes.go @@ -159,13 +159,6 @@ func (alS *AttributeService) processEvent(ev *utils.CGREvent) (rply *AttrSProces } continue } - // initEvVal, cast := utils.CastFieldIfToString(initEvValIf) - // if !cast { - // utils.Logger.Warning( - // fmt.Sprintf("<%s> ev: %s, cannot cast field: %+v to string", - // utils.AttributeS, ev, fldName)) - // continue - // } attrVal, has := intialMp[initEvValIf] if !has { attrVal, has = intialMp[utils.ANY]