From 786891c3339e71282e1b0d96a4a3f40c2a42b24f Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 2 Sep 2025 03:35:53 -0400 Subject: [PATCH] Remove unused local vars from user mailer warning (#35977) --- app/views/user_mailer/warning.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/user_mailer/warning.html.haml b/app/views/user_mailer/warning.html.haml index fe8db974ee9..1509a55af81 100644 --- a/app/views/user_mailer/warning.html.haml +++ b/app/views/user_mailer/warning.html.haml @@ -35,11 +35,11 @@ %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' } %tr %td.email-border-top - - @statuses.each_with_index do |status, i| + - @statuses.each do |status| %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' } %tr %td.email-border-bottom.email-padding-24 - = render 'notification_mailer/status', status: status, i: i + 1, highlighted: true, time_zone: @resource.time_zone.presence + = render 'notification_mailer/status', status: status, time_zone: @resource.time_zone.presence %table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' } %tr