summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/repofiles/delete.go2
-rw-r--r--modules/repofiles/file.go2
-rw-r--r--modules/repofiles/update.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules/repofiles/delete.go b/modules/repofiles/delete.go
index 2210faae6b..95b0804025 100644
--- a/modules/repofiles/delete.go
+++ b/modules/repofiles/delete.go
@@ -69,7 +69,7 @@ func DeleteRepoFile(repo *models.Repository, doer *models.User, opts *DeleteRepo
message := strings.TrimSpace(opts.Message)
- author, committer := GetAuthorAndCommitterUsers(opts.Committer, opts.Author, doer)
+ author, committer := GetAuthorAndCommitterUsers(opts.Author, opts.Committer, doer)
t, err := NewTemporaryUploadRepository(repo)
if err != nil {
diff --git a/modules/repofiles/file.go b/modules/repofiles/file.go
index 801f770e02..abd14b1db8 100644
--- a/modules/repofiles/file.go
+++ b/modules/repofiles/file.go
@@ -80,7 +80,7 @@ func GetFileCommitResponse(repo *models.Repository, commit *git.Commit) (*api.Fi
}
// GetAuthorAndCommitterUsers Gets the author and committer user objects from the IdentityOptions
-func GetAuthorAndCommitterUsers(author, committer *IdentityOptions, doer *models.User) (committerUser, authorUser *models.User) {
+func GetAuthorAndCommitterUsers(author, committer *IdentityOptions, doer *models.User) (authorUser, committerUser *models.User) {
// Committer and author are optional. If they are not the doer (not same email address)
// then we use bogus User objects for them to store their FullName and Email.
// If only one of the two are provided, we set both of them to it.
diff --git a/modules/repofiles/update.go b/modules/repofiles/update.go
index 0042be52cd..4d2f1d5f04 100644
--- a/modules/repofiles/update.go
+++ b/modules/repofiles/update.go
@@ -168,7 +168,7 @@ func CreateOrUpdateRepoFile(repo *models.Repository, doer *models.User, opts *Up
message := strings.TrimSpace(opts.Message)
- author, committer := GetAuthorAndCommitterUsers(opts.Committer, opts.Author, doer)
+ author, committer := GetAuthorAndCommitterUsers(opts.Author, opts.Committer, doer)
t, err := NewTemporaryUploadRepository(repo)
if err != nil {