about summary refs log tree commit diff
path: root/lib/tasks
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-03-15 21:34:00 -0400
committerGitHub <noreply@github.com>2023-03-16 10:34:00 +0900
commit25d36b6edd77ed161b2f496101f7127f7c1c9e5c (patch)
treecfe9f6a08a9a529cd323080576f7c4874e1b9cd5 /lib/tasks
parent0566c81a0cac884e7b176f8fc0a187ae11cf34c0 (diff)
Autofix Rubocop Style/RedundantArgument (#23798)
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/emojis.rake4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/emojis.rake b/lib/tasks/emojis.rake
index c743f8a55..fbb2e8d4f 100644
--- a/lib/tasks/emojis.rake
+++ b/lib/tasks/emojis.rake
@@ -6,7 +6,7 @@ def gen_border(codepoint, color)
   doc = File.open(input) { |f| Nokogiri::XML(f) }
   svg = doc.at_css('svg')
   if svg.key?('viewBox')
-    view_box = svg['viewBox'].split(' ').map(&:to_i)
+    view_box = svg['viewBox'].split.map(&:to_i)
     view_box[0] -= 2
     view_box[1] -= 2
     view_box[2] += 4
@@ -36,7 +36,7 @@ end
 
 def codepoints_to_unicode(codepoints)
   if codepoints.include?(' ')
-    codepoints.split(' ').map(&:hex).pack('U*')
+    codepoints.split.map(&:hex).pack('U*')
   else
     [codepoints.hex].pack('U')
   end