From b6856282083e766ffe132072dc18d4d2a6544a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Geuken?= Date: Sat, 16 May 2015 14:54:15 +0200 Subject: [PATCH] Remove superflous condition We ensured that the event has a track in the condition 3 lines above. Thus we can remove this one. --- app/views/conference/_schedule_item.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/conference/_schedule_item.html.haml b/app/views/conference/_schedule_item.html.haml index 507e9f34..01db4cac 100644 --- a/app/views/conference/_schedule_item.html.haml +++ b/app/views/conference/_schedule_item.html.haml @@ -19,6 +19,6 @@ - if event[0].track %span.schedule-track %span.fa.fa-road - %span.label{ style: "background-color: #{event[0].track.color if event[0].track}" } + %span.label{ style: "background-color: #{event[0].track.color}" } = event[0].track.name