Autofix Rubocop Style/RedundantArgument (#23798)
This commit is contained in:
parent
0566c81a0c
commit
25d36b6edd
4 changed files with 5 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue