mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Build fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user