Skip to content

Commit

Permalink
Fix source typos (#18227)
Browse files Browse the repository at this point in the history
Follow-up to #18219
  • Loading branch information
luzpaz authored Jan 10, 2022
1 parent 8c647bf commit af92473
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions modules/git/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
4 changes: 2 additions & 2 deletions modules/lfs/transferadapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ 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)
}
log.Trace("ErrorRespone: %v", er)
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 {
Expand Down

0 comments on commit af92473

Please sign in to comment.