Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
forgefriends
Forgefriends
Commits
af924739
Unverified
Commit
af924739
authored
Jan 10, 2022
by
luzpaz
Committed by
GitHub
Jan 10, 2022
Browse files
Fix source typos (#18227)
Follow-up to #18219
parent
8c647bf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/git/commit.go
View file @
af924739
...
...
@@ -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
,
glo
a
blArgs
[]
string
,
all
bool
,
files
...
string
)
error
{
cmd
:=
NewCommandNoGlobals
(
append
(
glo
a
blArgs
,
"add"
)
...
)
func
AddChangesWithArgs
(
repoPath
string
,
glob
a
lArgs
[]
string
,
all
bool
,
files
...
string
)
error
{
cmd
:=
NewCommandNoGlobals
(
append
(
glob
a
lArgs
,
"add"
)
...
)
if
all
{
cmd
.
AddArguments
(
"--all"
)
}
...
...
modules/lfs/transferadapter.go
View file @
af924739
...
...
@@ -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
:=
decodeRe
s
ponseError
(
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
decodeRe
s
ponseError
(
r
io
.
Reader
)
(
ErrorResponse
,
error
)
{
var
er
ErrorResponse
err
:=
json
.
NewDecoder
(
r
)
.
Decode
(
&
er
)
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment