summaryrefslogtreecommitdiffstats
path: root/modules/repofiles/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/repofiles/file.go')
-rw-r--r--modules/repofiles/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/repofiles/file.go b/modules/repofiles/file.go
index de3ee71dba..70fd57bba0 100644
--- a/modules/repofiles/file.go
+++ b/modules/repofiles/file.go
@@ -86,7 +86,7 @@ func GetAuthorAndCommitterUsers(author, committer *IdentityOptions, doer *models
// If only one of the two are provided, we set both of them to it.
// If neither are provided, both are the doer.
if committer != nil && committer.Email != "" {
- if doer != nil && strings.ToLower(doer.Email) == strings.ToLower(committer.Email) {
+ if doer != nil && strings.EqualFold(doer.Email, committer.Email) {
committerUser = doer // the committer is the doer, so will use their user object
if committer.Name != "" {
committerUser.FullName = committer.Name
@@ -99,7 +99,7 @@ func GetAuthorAndCommitterUsers(author, committer *IdentityOptions, doer *models
}
}
if author != nil && author.Email != "" {
- if doer != nil && strings.ToLower(doer.Email) == strings.ToLower(author.Email) {
+ if doer != nil && strings.EqualFold(doer.Email, author.Email) {
authorUser = doer // the author is the doer, so will use their user object
if authorUser.Name != "" {
authorUser.FullName = author.Name