mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +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:
		| @@ -10,10 +10,9 @@ import ( | ||||
| 	giteautil "code.gitea.io/gitea/modules/util" | ||||
|  | ||||
| 	"github.com/yuin/goldmark/ast" | ||||
| 	"github.com/yuin/goldmark/text" | ||||
| ) | ||||
|  | ||||
| func (g *ASTTransformer) transformLink(ctx *markup.RenderContext, v *ast.Link, reader text.Reader) { | ||||
| func (g *ASTTransformer) transformLink(ctx *markup.RenderContext, v *ast.Link) { | ||||
| 	// Links need their href to munged to be a real value | ||||
| 	link := v.Destination | ||||
| 	isAnchorFragment := len(link) > 0 && link[0] == '#' | ||||
|   | ||||
		Reference in New Issue
	
	Block a user