summaryrefslogtreecommitdiff
path: root/app/views/notify/pipeline_failed_email.text.erb
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-10-13 00:18:00 -0500
committerMike Greiling <mike@pixelcog.com>2016-10-13 00:18:00 -0500
commit36aea928a407376787a961bbc03ca3946a55902b (patch)
tree832234d07860c91ac7ec76985d1f3aa2384b40dc /app/views/notify/pipeline_failed_email.text.erb
parent5c36905a75e621669ced3c9bf850294855c563bb (diff)
downloadgitlab-ce-36aea928a407376787a961bbc03ca3946a55902b.tar.gz
invert if statement order
Diffstat (limited to 'app/views/notify/pipeline_failed_email.text.erb')
-rw-r--r--app/views/notify/pipeline_failed_email.text.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/notify/pipeline_failed_email.text.erb b/app/views/notify/pipeline_failed_email.text.erb
index b632d94facc..1b249c0cb7c 100644
--- a/app/views/notify/pipeline_failed_email.text.erb
+++ b/app/views/notify/pipeline_failed_email.text.erb
@@ -9,10 +9,10 @@ Merge Request: <%= @merge_request.to_reference %> ( <%= merge_request_url(@merge
Commit: <%= @pipeline.short_sha %> ( <%= namespace_project_commit_url(@project.namespace, @project, @pipeline.sha) %> )
Commit Message: <%= @pipeline.git_commit_message.truncate(50) %>
<% commit = @pipeline.commit -%>
-<% if commit.author.nil? -%>
-Commit Author: <%= commit.author_name %>
-<% else -%>
+<% if commit.author -%>
Commit Author: <%= commit.author.name %> ( <%= user_url(commit.author) %> )
+<% else -%>
+Commit Author: <%= commit.author_name %>
<% end -%>
<% failed = @pipeline.statuses.latest.failed -%>