Skip to content

Commit 845891d

Browse files
committed
Fix lint
1 parent e59cb4a commit 845891d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/markdown/markdown.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ func (r *Renderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
161161
}
162162

163163
issue := string(m[i+7 : j])
164-
fullRepoUrl := setting.AppURL + strings.TrimPrefix(r.urlPrefix, "/")
164+
fullRepoURL := setting.AppURL + strings.TrimPrefix(r.urlPrefix, "/")
165165
var link string
166-
if strings.HasPrefix(string(m), fullRepoUrl) {
166+
if strings.HasPrefix(string(m), fullRepoURL) {
167167
// Use a short issue reference if the URL refers to this repository
168168
link = fmt.Sprintf(`<a href="%s">#%s</a>`, m, issue)
169169
} else {

0 commit comments

Comments
 (0)