Build fix

This commit is contained in:
DanB
2015-12-11 17:14:32 +01:00
parent 1592f777c3
commit 7119221d68

View File

@@ -38,8 +38,6 @@ import (
"strconv"
"strings"
"time"
"github.com/cgrates/cgrates/utils"
)
// Returns first non empty string out of vals. Useful to extract defaults
@@ -255,7 +253,7 @@ func MinDuration(d1, d2 time.Duration) time.Duration {
func ParseZeroRatingSubject(rateSubj string) (time.Duration, error) {
rateSubj = strings.TrimSpace(rateSubj)
if rateSubj == "" || rateSubj == utils.ANY {
if rateSubj == "" || rateSubj == ANY {
rateSubj = ZERO_RATING_SUBJECT_PREFIX + "1s"
}
if !strings.HasPrefix(rateSubj, ZERO_RATING_SUBJECT_PREFIX) {