Skip to content

Commit af92473

Browse files
authored
Fix source typos (#18227)
Follow-up to #18219
1 parent 8c647bf commit af92473

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/git/commit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ func AddChanges(repoPath string, all bool, files ...string) error {
8787
}
8888

8989
// AddChangesWithArgs marks local changes to be ready for commit.
90-
func AddChangesWithArgs(repoPath string, gloablArgs []string, all bool, files ...string) error {
91-
cmd := NewCommandNoGlobals(append(gloablArgs, "add")...)
90+
func AddChangesWithArgs(repoPath string, globalArgs []string, all bool, files ...string) error {
91+
cmd := NewCommandNoGlobals(append(globalArgs, "add")...)
9292
if all {
9393
cmd.AddArguments("--all")
9494
}

modules/lfs/transferadapter.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,15 @@ func (a *BasicTransferAdapter) performRequest(ctx context.Context, method string
117117
func handleErrorResponse(resp *http.Response) error {
118118
defer resp.Body.Close()
119119

120-
er, err := decodeReponseError(resp.Body)
120+
er, err := decodeResponseError(resp.Body)
121121
if err != nil {
122122
return fmt.Errorf("Request failed with status %s", resp.Status)
123123
}
124124
log.Trace("ErrorRespone: %v", er)
125125
return errors.New(er.Message)
126126
}
127127

128-
func decodeReponseError(r io.Reader) (ErrorResponse, error) {
128+
func decodeResponseError(r io.Reader) (ErrorResponse, error) {
129129
var er ErrorResponse
130130
err := json.NewDecoder(r).Decode(&er)
131131
if err != nil {

0 commit comments

Comments
 (0)