From 7c96ce304f9b03c64f7ba53509077d426cad2a46 Mon Sep 17 00:00:00 2001 From: Iris Lightshard Date: Mon, 29 Jan 2024 21:30:56 -0700 Subject: [PATCH] fix naming conflict for diff route --- routes/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/routes.go b/routes/routes.go index 074782e..6300975 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -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{})