mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Resolve lint for unused parameter and unnecessary type arguments (#30750)
Resolve all cases for `unused parameter` and `unnecessary type arguments` Related: #30729 --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -13,7 +13,7 @@ import ( | ||||
| 	"github.com/yuin/goldmark/util" | ||||
| ) | ||||
|  | ||||
| func (g *ASTTransformer) transformHeading(ctx *markup.RenderContext, v *ast.Heading, reader text.Reader, tocList *[]markup.Header) { | ||||
| func (g *ASTTransformer) transformHeading(_ *markup.RenderContext, v *ast.Heading, reader text.Reader, tocList *[]markup.Header) { | ||||
| 	for _, attr := range v.Attributes() { | ||||
| 		if _, ok := attr.Value.([]byte); !ok { | ||||
| 			v.SetAttribute(attr.Name, []byte(fmt.Sprintf("%v", attr.Value))) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user