From d245f980174f6a3ab5d658e7c2c040284c234f28 Mon Sep 17 00:00:00 2001
From: Lin Jen-Shin <godfat@godfat.org>
Date: Mon, 26 Sep 2016 16:39:24 +0800
Subject: [PATCH] We already checked commit.author is not nil, so it must be
 there

---
 app/views/notify/pipeline_failed_email.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/notify/pipeline_failed_email.html.haml b/app/views/notify/pipeline_failed_email.html.haml
index da28b4c30cd..d238353ed5d 100644
--- a/app/views/notify/pipeline_failed_email.html.haml
+++ b/app/views/notify/pipeline_failed_email.html.haml
@@ -125,7 +125,7 @@
                                                 = commit.author_name
                                             - else
                                               %a.muted{:href => user_url(commit.author), :style => "color:#333333;text-decoration:none;"}
-                                                = commit.author.try(:name) || commit.author_name
+                                                = commit.author.name
                         %tr.spacer
                           %td{:style => "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;height:18px;font-size:18px;line-height:18px;"}
                             &nbsp;
-- 
GitLab