chore: remove duplicated code (#2657)

Signed-off-by: lihaowei <haoweili35@gmail.com>
This commit is contained in:
Howie 2022-05-30 14:17:40 +08:00 committed by Aliaksandr Valialkin
parent 9c5f998438
commit 09fed19ba5
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -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)
}