mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-27 00:23:41 +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:
		| @@ -27,7 +27,7 @@ func doCheckRepositoryEmptyStatus(ctx APITestContext, isEmpty bool) func(*testin | ||||
|  | ||||
| func doAddChangesToCheckout(dstPath, filename string) func(*testing.T) { | ||||
| 	return func(t *testing.T) { | ||||
| 		assert.NoError(t, os.WriteFile(filepath.Join(dstPath, filename), []byte(fmt.Sprintf("# Testing Repository\n\nOriginally created in: %s at time: %v", dstPath, time.Now())), 0o644)) | ||||
| 		assert.NoError(t, os.WriteFile(filepath.Join(dstPath, filename), fmt.Appendf(nil, "# Testing Repository\n\nOriginally created in: %s at time: %v", dstPath, time.Now()), 0o644)) | ||||
| 		assert.NoError(t, git.AddChanges(dstPath, true)) | ||||
| 		signature := git.Signature{ | ||||
| 			Email: "test@example.com", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user