fix naming conflict for diff route

This commit is contained in:
Iris Lightshard 2024-01-29 21:30:56 -07:00
parent 5fe7b8e470
commit 7c96ce304f
Signed by: Iris Lightshard
GPG key ID: 688407174966CAF3

View file

@ -287,9 +287,9 @@ func (d *deps) Diff(w http.ResponseWriter, r *http.Request) {
return
}
name, ok := mailmap[diff.Commit.Author.Email]
authorname, ok := mailmap[diff.Commit.Author.Email]
if ok {
diff.Commit.Author.Name = name
diff.Commit.Author.Name = authorname
}
data := make(map[string]interface{})