Parcourir la source

map instead of each on hash

Kylie Jo Swistak il y a 5 ans
Parent
commit
6d4e657d90
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/embeds/reject.rb

+ 1 - 1
app/embeds/reject.rb

@@ -41,7 +41,7 @@ end
 
 def reject_fields(message_hash)
   fields = []
-  message_hash.each do |emoji, message|
+  message_hash.map do |emoji, message|
     fields.push({
       name: emoji,
       value: "#{message}\n#{CharApp::INLINE_SPACE}",