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 GitHub
parent 7c3d43fa7f
commit d12614c0a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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