diff options
author | Oleksandr Redko <oleksandr.red+github@gmail.com> | 2024-10-30 21:36:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-30 19:36:24 +0000 |
commit | f4d3aaeeb9e1b11c5495e4608a3f52f316c35758 (patch) | |
tree | e2601e11bc483e16e07afeaa0c31ad55021fe0d8 /modules/markup/markdown/goldmark.go | |
parent | dd1f67491f5e2f798a537a61c082b1bf12e47635 (diff) | |
download | gitea-f4d3aaeeb9e1b11c5495e4608a3f52f316c35758.tar.gz gitea-f4d3aaeeb9e1b11c5495e4608a3f52f316c35758.zip |
refactor: remove redundant err declarations (#32381)
Diffstat (limited to 'modules/markup/markdown/goldmark.go')
-rw-r--r-- | modules/markup/markdown/goldmark.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go index a89670eeef..515a79578d 100644 --- a/modules/markup/markdown/goldmark.go +++ b/modules/markup/markdown/goldmark.go @@ -213,8 +213,7 @@ func (r *HTMLRenderer) renderIcon(w util.BufWriter, source []byte, node ast.Node return ast.WalkContinue, nil } - var err error - _, err = w.WriteString(fmt.Sprintf(`<i class="icon %s"></i>`, name)) + _, err := w.WriteString(fmt.Sprintf(`<i class="icon %s"></i>`, name)) if err != nil { return ast.WalkStop, err } |