forked from forgejo/forgejo
format with gofumpt (#18184)
* gofumpt -w -l . * gofumpt -w -l -extra . * Add linter * manual fix * change make fmt
This commit is contained in:
parent
1d98d205f5
commit
54e9ee37a7
423 changed files with 1585 additions and 1758 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue