-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Refactor lfs requests #26783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor lfs requests #26783
Conversation
No description? What's the purpose of this refactoring? Just refactor/improve the old code, or fix/improve something else by the way? |
Pity to see this is closed. As a refactoring PR, overall LGTM (but there is no notification when the it got updated description, I just got reminded by the "closed" message) |
I can reopen it, if this change is welcomed |
3bc57c4
to
9478366
Compare
Thank you. I think there could be some small fine tunes: set Content-Type if it doesn't exist harryzcy#15
|
Good catch, weird that golangci didn't catch it. Edit: err is checked after |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* origin/main: Fix the incorrect route path in the user edit page. (go-gitea#27007) Refactor lfs requests (go-gitea#26783) Display archived labels specially when listing labels (go-gitea#26820) Remove a `gt-float-right` and some unnecessary helpers (go-gitea#27110) [skip ci] Updated licenses and gitignores Fix token endpoints ignore specified account (go-gitea#27080) Make SSPI auth mockable (go-gitea#27036)
* giteaofficial/main: Improve actions docs related to `pull_request` event (go-gitea#27126) Remove outdated paragraphs when comparing Gitea Actions to GitHub Actions (go-gitea#27119) Fix: treat tab "overview" as "repositories" in user profiles without readme (go-gitea#27124) Fix incorrect test code for error handling (go-gitea#27139) Increase auth provider icon size on login page (go-gitea#27122) fix pagination for followers and following (go-gitea#27127) services/wiki: Close() after error handling (go-gitea#27129) Use fetch helpers instead of fetch (go-gitea#27026) Change green buttons to primary color (go-gitea#27099) Fix wrong xorm get usage on migration (go-gitea#27111) Fix the incorrect route path in the user edit page. (go-gitea#27007) Refactor lfs requests (go-gitea#26783) Display archived labels specially when listing labels (go-gitea#26820) Remove a `gt-float-right` and some unnecessary helpers (go-gitea#27110) [skip ci] Updated licenses and gitignores Fix token endpoints ignore specified account (go-gitea#27080) Make SSPI auth mockable (go-gitea#27036)
performRequest
function to create the request, uses a callback to modify the request, and then send the request.createRequest
that only creates request andperformRequest
that only sends the request.createRequest
andperformRequest
inhttp_client.go
andtransferadapter.go