aboutsummaryrefslogtreecommitdiffstats
path: root/modules/lfs/transferadapter.go
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2022-01-10 10:46:26 -0500
committerGitHub <noreply@github.com>2022-01-10 23:46:26 +0800
commitaf9247392000c559bf8638f70b025d1894e6fd97 (patch)
treee76750ae5d70b0860a7cb66d2e0b297c84e4b2f0 /modules/lfs/transferadapter.go
parent8c647bf0f6b19fe666c645ec16010d07bfe85a63 (diff)
downloadgitea-af9247392000c559bf8638f70b025d1894e6fd97.tar.gz
gitea-af9247392000c559bf8638f70b025d1894e6fd97.zip
Fix source typos (#18227)
Follow-up to #18219
Diffstat (limited to 'modules/lfs/transferadapter.go')
-rw-r--r--modules/lfs/transferadapter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/lfs/transferadapter.go b/modules/lfs/transferadapter.go
index 03f326f26c..2fdd92c810 100644
--- a/modules/lfs/transferadapter.go
+++ b/modules/lfs/transferadapter.go
@@ -117,7 +117,7 @@ func (a *BasicTransferAdapter) performRequest(ctx context.Context, method string
func handleErrorResponse(resp *http.Response) error {
defer resp.Body.Close()
- er, err := decodeReponseError(resp.Body)
+ er, err := decodeResponseError(resp.Body)
if err != nil {
return fmt.Errorf("Request failed with status %s", resp.Status)
}
@@ -125,7 +125,7 @@ func handleErrorResponse(resp *http.Response) error {
return errors.New(er.Message)
}
-func decodeReponseError(r io.Reader) (ErrorResponse, error) {
+func decodeResponseError(r io.Reader) (ErrorResponse, error) {
var er ErrorResponse
err := json.NewDecoder(r).Decode(&er)
if err != nil {