From 2d609b8b31ab3dea7e9ae3f315e945082b23e8ad Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sun, 6 Mar 2022 15:59:45 +0800 Subject: autofix: types of function parameters can be combined (#6800) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/markup/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/markup') diff --git a/internal/markup/markdown.go b/internal/markup/markdown.go index ab0b9cd2..f8078b38 100644 --- a/internal/markup/markdown.go +++ b/internal/markup/markdown.go @@ -43,7 +43,7 @@ func isLink(link []byte) bool { } // Link defines how formal links should be processed to produce corresponding HTML elements. -func (r *MarkdownRenderer) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) { +func (r *MarkdownRenderer) Link(out *bytes.Buffer, link, title, content []byte) { if len(link) > 0 && !isLink(link) { if link[0] != '#' { link = []byte(path.Join(r.urlPrefix, string(link))) -- cgit v1.2.3