delete no use code
This commit is contained in:
parent
b108c9f11a
commit
4f8fedbaa0
|
@ -198,16 +198,13 @@ func (r RuleEval) judge(vectors []Vector) {
|
|||
tagsMap[string(label)] = string(value)
|
||||
}
|
||||
|
||||
// handle target note and target_tags
|
||||
// handle target note
|
||||
targetIdent, has := vectors[i].Labels["ident"]
|
||||
targetNote := ""
|
||||
if has {
|
||||
target, exists := memsto.TargetCache.Get(string(targetIdent))
|
||||
if exists {
|
||||
targetNote = target.Note
|
||||
for label, value := range target.TagsMap {
|
||||
tagsMap[label] = value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue