simplified ConcatenatedKey

This commit is contained in:
Radu Ioan Fericean
2015-04-02 17:57:37 +03:00
parent c020ab02ea
commit f050fe49df

View File

@@ -254,14 +254,7 @@ func ParseZeroRatingSubject(rateSubj string) (time.Duration, error) {
}
func ConcatenatedKey(keyVals ...string) string {
resKey := ""
for idx, key := range keyVals {
if idx != 0 {
resKey += CONCATENATED_KEY_SEP
}
resKey += key
}
return resKey
return strings.Join(keyVals, CONCATENATED_KEY_SEP)
}
func RatingSubjectAliasKey(tenant, subject string) string {