diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-10-18 03:47:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 20:47:12 +0100 |
commit | 4a57c9ea17a86e579751025cd0a7c2e6de374726 (patch) | |
tree | d9de60079592c541c9e6f2a983ec754199739a2f /modules/markup | |
parent | 5326f4c9c59cce8a1d8f78afd486ebb8688b45ab (diff) | |
download | gitea-4a57c9ea17a86e579751025cd0a7c2e6de374726.tar.gz gitea-4a57c9ea17a86e579751025cd0a7c2e6de374726.zip |
Fix some lints (#17337)
Fix some linting problems.
Diffstat (limited to 'modules/markup')
-rw-r--r-- | modules/markup/common/footnote.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/markup/common/footnote.go b/modules/markup/common/footnote.go index 9baf8a4998..bc53d56f2b 100644 --- a/modules/markup/common/footnote.go +++ b/modules/markup/common/footnote.go @@ -125,9 +125,9 @@ type Footnote struct { // Dump implements Node.Dump. func (n *Footnote) Dump(source []byte, level int) { m := map[string]string{} - m["Index"] = fmt.Sprintf("%v", n.Index) - m["Ref"] = fmt.Sprintf("%s", n.Ref) - m["Name"] = fmt.Sprintf("%v", n.Name) + m["Index"] = strconv.Itoa(n.Index) + m["Ref"] = string(n.Ref) + m["Name"] = string(n.Name) ast.DumpHelper(n, source, level, m, nil) } |