From 8de8506d44de76af4f00ca50283ff46d005a00ab Mon Sep 17 00:00:00 2001
From: Lin Jen-Shin <godfat@godfat.org>
Date: Mon, 26 Sep 2016 16:39:52 +0800
Subject: [PATCH] Use string interpolation if possible (better performance)

---
 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 d238353ed5d..3a85d4831f8 100644
--- a/app/views/notify/pipeline_failed_email.html.haml
+++ b/app/views/notify/pipeline_failed_email.html.haml
@@ -138,7 +138,7 @@
                             had
                             = failed.size
                             failed
-                            = 'build'.pluralize(failed.size) + '.'
+                            = "#{'build'.pluralize(failed.size)}."
                         %tr.warning
                           %td{:style => "font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;border:1px solid #ededed;border-bottom:0;border-radius:3px 3px 0 0;overflow:hidden;background-color:#fdf4f6;color:#d22852;font-size:14px;line-height:1.4;text-align:center;padding:8px 15px;"}
                             Logs may contain sensitive data. Please consider before forwarding this email.
-- 
GitLab