mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +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:
		| @@ -246,7 +246,7 @@ func (protectBranch *ProtectedBranch) GetUnprotectedFilePatterns() []glob.Glob { | ||||
|  | ||||
| func getFilePatterns(filePatterns string) []glob.Glob { | ||||
| 	extarr := make([]glob.Glob, 0, 10) | ||||
| 	for _, expr := range strings.Split(strings.ToLower(filePatterns), ";") { | ||||
| 	for expr := range strings.SplitSeq(strings.ToLower(filePatterns), ";") { | ||||
| 		expr = strings.TrimSpace(expr) | ||||
| 		if expr != "" { | ||||
| 			if g, err := glob.Compile(expr, '.', '/'); err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user