Replacing DESTINATION and RATING_PLAN consts with their prefix versions for compressing code

This commit is contained in:
DanB
2013-11-14 13:03:15 +01:00
parent 408047dd1c
commit 26bb99bd64
5 changed files with 10 additions and 13 deletions

View File

@@ -63,10 +63,10 @@ func (ms *MapStorage) PreCache(dKeys, rppKeys []string) error {
// Used to check if specific subject is stored using prefix key attached to entity
func (ms *MapStorage) ExistsData(categ, subject string) (bool, error) {
switch categ {
case DESTINATION:
case DESTINATION_PREFIX:
_, exists := ms.dict[DESTINATION_PREFIX+subject]
return exists, nil
case RATING_PLAN:
case RATING_PLAN_PREFIX:
_, exists := ms.dict[RATING_PLAN_PREFIX+subject]
return exists, nil
}