From af9247392000c559bf8638f70b025d1894e6fd97 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Mon, 10 Jan 2022 10:46:26 -0500 Subject: [PATCH] Fix source typos (#18227) Follow-up to #18219 --- modules/git/commit.go | 4 ++-- modules/lfs/transferadapter.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/git/commit.go b/modules/git/commit.go index 26c5445e2a9..3e3641b0967 100644 --- a/modules/git/commit.go +++ b/modules/git/commit.go @@ -87,8 +87,8 @@ func AddChanges(repoPath string, all bool, files ...string) error { } // AddChangesWithArgs marks local changes to be ready for commit. -func AddChangesWithArgs(repoPath string, gloablArgs []string, all bool, files ...string) error { - cmd := NewCommandNoGlobals(append(gloablArgs, "add")...) +func AddChangesWithArgs(repoPath string, globalArgs []string, all bool, files ...string) error { + cmd := NewCommandNoGlobals(append(globalArgs, "add")...) if all { cmd.AddArguments("--all") } diff --git a/modules/lfs/transferadapter.go b/modules/lfs/transferadapter.go index 03f326f26c5..2fdd92c8109 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 {