From f6dda59e5db33f0fa2a9d28c2f17e87774269e76 Mon Sep 17 00:00:00 2001
From: Matt Jankowski <matt@jankowski.online>
Date: Tue, 18 Jul 2023 11:43:04 -0400
Subject: [PATCH] Fix haml-lint Rubocop `Style/SymbolProc` cop (#26059)

---
 .haml-lint_todo.yml                      | 4 ++--
 app/views/admin/accounts/index.html.haml | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.haml-lint_todo.yml b/.haml-lint_todo.yml
index 97ce881aa0..ec0a9d3a49 100644
--- a/.haml-lint_todo.yml
+++ b/.haml-lint_todo.yml
@@ -1,6 +1,6 @@
 # This configuration was generated by
 # `haml-lint --auto-gen-config`
-# on 2023-07-18 11:12:23 -0400 using Haml-Lint version 0.48.0.
+# on 2023-07-18 11:29:47 -0400 using Haml-Lint version 0.48.0.
 # The point is for the user to remove these configuration records
 # one by one as the lints are removed from the code base.
 # Note that changes in the inspected code, or installation of new
@@ -15,7 +15,7 @@ linters:
   UnnecessaryStringOutput:
     enabled: false
 
-  # Offense count: 64
+  # Offense count: 63
   RuboCop:
     enabled: false
 
diff --git a/app/views/admin/accounts/index.html.haml b/app/views/admin/accounts/index.html.haml
index d0897221db..57d944b57a 100644
--- a/app/views/admin/accounts/index.html.haml
+++ b/app/views/admin/accounts/index.html.haml
@@ -47,7 +47,7 @@
       %label.batch-table__toolbar__select.batch-checkbox-all
         = check_box_tag :batch_checkbox_all, nil, false
       .batch-table__toolbar__actions
-        - if @accounts.any? { |account| account.user_pending? }
+        - if @accounts.any?(&:user_pending?)
           = f.button safe_join([fa_icon('check'), t('admin.accounts.approve')]), name: :approve, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
 
           = f.button safe_join([fa_icon('times'), t('admin.accounts.reject')]), name: :reject, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }