From b5c25cce2b0269c8d61e23b0a67342c7d1414422 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Sun, 2 Nov 2025 00:06:23 +0100 Subject: [PATCH] Redundant concat --- app/helpers/notifications_helper.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 69eab11a6..51ff30da0 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -23,14 +23,14 @@ module NotificationsHelper tag.div id: dom_id(notification), class: "tray__item tray__item--notification", data: { navigable_list_target: "item", notifications_tray_target: "notification", - card_id: notification.card.id, timestamp: notification.created_at.to_i } do - concat( - link_to(notification, - class: [ "card card--notification", { "card--closed": notification.card.closed? }, { "unread": !notification.read? } ], - data: { turbo_frame: "_top", badge_target: "unread", action: "badge#update" }, - style: { "--card-color:": notification.card.color }, - &) - ) + card_id: notification.card.id, + timestamp: notification.created_at.to_i + } do + link_to(notification, + class: [ "card card--notification", { "card--closed": notification.card.closed? }, { "unread": !notification.read? } ], + data: { turbo_frame: "_top", badge_target: "unread", action: "badge#update" }, + style: { "--card-color:": notification.card.color }, + &) end end