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:
		| @@ -8,6 +8,7 @@ import ( | ||||
| 	"context" | ||||
| 	"errors" | ||||
| 	"fmt" | ||||
| 	"maps" | ||||
| 	"os" | ||||
| 	"path/filepath" | ||||
| 	"regexp" | ||||
| @@ -95,9 +96,7 @@ func getMergeMessage(ctx context.Context, baseGitRepo *git.Repository, pr *issue | ||||
| 				vars["HeadRepoOwnerName"] = pr.HeadRepo.OwnerName | ||||
| 				vars["HeadRepoName"] = pr.HeadRepo.Name | ||||
| 			} | ||||
| 			for extraKey, extraValue := range extraVars { | ||||
| 				vars[extraKey] = extraValue | ||||
| 			} | ||||
| 			maps.Copy(vars, extraVars) | ||||
| 			refs, err := pr.ResolveCrossReferences(ctx) | ||||
| 			if err == nil { | ||||
| 				closeIssueIndexes := make([]string, 0, len(refs)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user