summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-15 22:20:55 -0700
committerUnknwon <u@gogs.io>2016-08-15 22:20:55 -0700
commit2625193a4820a89355ca1b8b7c910f0f4243baab (patch)
treec948d66e4e968caaff0109f808878af45bed0eec /routers
parentf3c325892139a4dae84ceda773b7caf5aef67d33 (diff)
downloadgitea-2625193a4820a89355ca1b8b7c910f0f4243baab.tar.gz
gitea-2625193a4820a89355ca1b8b7c910f0f4243baab.zip
models/repo_editor: improve code quality
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go
index ed1e9a1360..8b49a9e47f 100644
--- a/routers/repo/editor.go
+++ b/routers/repo/editor.go
@@ -263,7 +263,7 @@ func editFilePost(ctx *context.Context, form auth.EditRepoFileForm, isNewFile bo
message += "\n\n" + form.CommitMessage
}
- if err := ctx.Repo.Repository.UpdateRepoFile(ctx.User, &models.UpdateRepoFileOptions{
+ if err := ctx.Repo.Repository.UpdateRepoFile(ctx.User, models.UpdateRepoFileOptions{
LastCommitID: lastCommit,
OldBranch: oldBranchName,
NewBranch: branchName,