mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Update go tool dependencies, restructure lint targets (#24239)
- Update all tool dependencies to latest tag - Remove unused errcheck, it is part of golangci-lint - Include main.go in air - Enable wastedassign again now that it's [generics-compatible](https://github.com/golangci/golangci-lint/pull/3689) - Restructured lint targets to new `lint-*` namespace
This commit is contained in:
		@@ -47,7 +47,9 @@ func (e *escapeStreamer) EscapeStatus() *EscapeStatus {
 | 
			
		||||
// Text tells the next streamer there is a text
 | 
			
		||||
func (e *escapeStreamer) Text(data string) error {
 | 
			
		||||
	sb := &strings.Builder{}
 | 
			
		||||
	pos, until, next := 0, 0, 0
 | 
			
		||||
	var until int
 | 
			
		||||
	var next int
 | 
			
		||||
	pos := 0
 | 
			
		||||
	if len(data) > len(UTF8BOM) && data[:len(UTF8BOM)] == string(UTF8BOM) {
 | 
			
		||||
		_, _ = sb.WriteString(data[:len(UTF8BOM)])
 | 
			
		||||
		pos = len(UTF8BOM)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user