diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-21 19:57:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 09:57:15 +0900 |
commit | 8fd3fc404dd848253767252bbd76275e091832b1 (patch) | |
tree | 05dac486f88021edebe5c27edc8466f1484e9114 /lib/tasks/emojis.rake | |
parent | 48aeab90f657055e5516b844f47fcf5c097458a1 (diff) |
Autofix Rubocop Rails/RootPathnameMethods (#23760)
Diffstat (limited to 'lib/tasks/emojis.rake')
-rw-r--r-- | lib/tasks/emojis.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/emojis.rake b/lib/tasks/emojis.rake index 02d772b48..c743f8a55 100644 --- a/lib/tasks/emojis.rake +++ b/lib/tasks/emojis.rake @@ -69,7 +69,7 @@ namespace :emojis do end end - existence_maps = grouped_codes.map { |c| c.index_with { |cc| File.exist?(Rails.public_path.join('emoji', "#{codepoints_to_filename(cc)}.svg")) } } + existence_maps = grouped_codes.map { |c| c.index_with { |cc| Rails.public_path.join('emoji', "#{codepoints_to_filename(cc)}.svg").exist? } } map = {} existence_maps.each do |group| |