mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Run gopls modernize on codebase (#34751)
				
					
				
			Recent modernize fixes: https://github.com/golang/tools/commits/master/gopls/internal/analysis/modernize
This commit is contained in:
		| @@ -16,7 +16,7 @@ import ( | ||||
| func (g *ASTTransformer) transformHeading(_ *markup.RenderContext, v *ast.Heading, reader text.Reader, tocList *[]Header) { | ||||
| 	for _, attr := range v.Attributes() { | ||||
| 		if _, ok := attr.Value.([]byte); !ok { | ||||
| 			v.SetAttribute(attr.Name, []byte(fmt.Sprintf("%v", attr.Value))) | ||||
| 			v.SetAttribute(attr.Name, fmt.Appendf(nil, "%v", attr.Value)) | ||||
| 		} | ||||
| 	} | ||||
| 	txt := v.Text(reader.Source()) //nolint:staticcheck | ||||
|   | ||||
		Reference in New Issue
	
	Block a user