diff --git a/app/vmalert/notifier/alert.go b/app/vmalert/notifier/alert.go index 8c3e7f2f5a..4d88a1a82f 100644 --- a/app/vmalert/notifier/alert.go +++ b/app/vmalert/notifier/alert.go @@ -163,9 +163,6 @@ func templateAnnotation(dst io.Writer, text string, data tplData, tmpl *textTpl. if !execute { return nil } - if !execute { - return nil - } if err = tpl.Execute(dst, data); err != nil { return fmt.Errorf("error evaluating annotation template: %w", err) }