From ff2fd08228dd6323ac4a1cbd2f37f8ae15733eab Mon Sep 17 00:00:00 2001
From: Gusted <williamzijl7@hotmail.com>
Date: Mon, 20 Dec 2021 05:41:31 +0100
Subject: Simplify parameter types (#18006)

Remove repeated type declarations in function definitions.
---
 modules/markup/markdown/goldmark.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'modules/markup')

diff --git a/modules/markup/markdown/goldmark.go b/modules/markup/markdown/goldmark.go
index 43023220a5..83afb8b663 100644
--- a/modules/markup/markdown/goldmark.go
+++ b/modules/markup/markdown/goldmark.go
@@ -229,7 +229,7 @@ func (p *prefixedIDs) Generate(value []byte, kind ast.NodeKind) []byte {
 }
 
 // Generate generates a new element id.
-func (p *prefixedIDs) GenerateWithDefault(value []byte, dft []byte) []byte {
+func (p *prefixedIDs) GenerateWithDefault(value, dft []byte) []byte {
 	result := common.CleanValue(value)
 	if len(result) == 0 {
 		result = dft
-- 
cgit v1.2.3