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:
		| @@ -42,7 +42,7 @@ func (r *BlockRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer) { | ||||
|  | ||||
| func (r *BlockRenderer) writeLines(w util.BufWriter, source []byte, n gast.Node) { | ||||
| 	l := n.Lines().Len() | ||||
| 	for i := 0; i < l; i++ { | ||||
| 	for i := range l { | ||||
| 		line := n.Lines().At(i) | ||||
| 		_, _ = w.Write(util.EscapeHTML(line.Value(source))) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user