diff options
author | deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> | 2022-03-06 15:59:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-06 15:59:45 +0800 |
commit | 2d609b8b31ab3dea7e9ae3f315e945082b23e8ad (patch) | |
tree | 6b42670f567bdbc598abe5ca9f619dc608b49f36 /internal/markup | |
parent | 3acc13038dfe5e0643112140d329c6eb0ed4cd6a (diff) |
autofix: types of function parameters can be combined (#6800)
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Diffstat (limited to 'internal/markup')
-rw-r--r-- | internal/markup/markdown.go | 2 |
1 files changed, 1 insertions, 1 deletions
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))) |