mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
chore: remove duplicated code (#2657)
Signed-off-by: lihaowei <haoweili35@gmail.com>
This commit is contained in:
parent
9c5f998438
commit
09fed19ba5
1 changed files with 0 additions and 3 deletions
|
@ -163,9 +163,6 @@ func templateAnnotation(dst io.Writer, text string, data tplData, tmpl *textTpl.
|
||||||
if !execute {
|
if !execute {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if !execute {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
if err = tpl.Execute(dst, data); err != nil {
|
if err = tpl.Execute(dst, data); err != nil {
|
||||||
return fmt.Errorf("error evaluating annotation template: %w", err)
|
return fmt.Errorf("error evaluating annotation template: %w", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue