Remove unnecessary conversion
@@ -129,7 +129,7 @@ func (r *metricRule) apply(s string) (ruleResult, string) {
}
return ruleUnmatched, s
} else if r.EachSegment {
- segments := strings.Split(string(s), "/")
+ segments := strings.Split(s, "/")
applied := make([]string, len(segments))
result := ruleUnmatched
for i, segment := range segments {
