Clean the code

This commit is contained in:
TeoV
2018-01-26 10:42:30 +02:00
committed by Dan Christian Bogos
parent 92b0728aaa
commit 516a8331ae
2 changed files with 2 additions and 9 deletions

View File

@@ -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))
}
}

View File

@@ -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]