mirror of
https://github.com/go-gitea/gitea
synced 2024-11-25 12:02:44 +01:00
Fix missed return (#29450)
This commit is contained in:
parent
9a8c90ee18
commit
e9f4c2db82
1 changed files with 1 additions and 0 deletions
|
@ -655,6 +655,7 @@ func UpdateFile(ctx *context.APIContext) {
|
||||||
apiOpts := web.GetForm(ctx).(*api.UpdateFileOptions)
|
apiOpts := web.GetForm(ctx).(*api.UpdateFileOptions)
|
||||||
if ctx.Repo.Repository.IsEmpty {
|
if ctx.Repo.Repository.IsEmpty {
|
||||||
ctx.Error(http.StatusUnprocessableEntity, "RepoIsEmpty", fmt.Errorf("repo is empty"))
|
ctx.Error(http.StatusUnprocessableEntity, "RepoIsEmpty", fmt.Errorf("repo is empty"))
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if apiOpts.BranchName == "" {
|
if apiOpts.BranchName == "" {
|
||||||
|
|
Loading…
Reference in a new issue