mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Clean the code
This commit is contained in:
committed by
Dan Christian Bogos
parent
92b0728aaa
commit
516a8331ae
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user