mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
		@@ -58,7 +58,7 @@ func BenchmarkRepoBranchCommit(b *testing.B) {
 | 
			
		||||
					req := NewRequestf(b, "GET", "/api/v1/repos/%s/branches", repo.FullName())
 | 
			
		||||
					resp := session.MakeRequest(b, req, http.StatusOK)
 | 
			
		||||
					DecodeJSON(b, resp, &branches)
 | 
			
		||||
					b.ResetTimer() //We measure from here
 | 
			
		||||
					b.ResetTimer() // We measure from here
 | 
			
		||||
					if len(branches) != 0 {
 | 
			
		||||
						for i := 0; i < b.N; i++ {
 | 
			
		||||
							req := NewRequestf(b, "GET", "/api/v1/repos/%s/commits?sha=%s", repo.FullName(), branches[i%len(branches)].Name)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user