Skip to content

Commit

Permalink
Fix rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
codez committed Dec 17, 2024
1 parent b865cd9 commit 7229a4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/prawn/markup/builders/nestable_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def normalize_cell_hash(hash, cell_width, style_options = {})
end

def text_options
(options[:text] || {})
options[:text] || {}
end

def compute_image_width(hash, max_width)
Expand Down
2 changes: 1 addition & 1 deletion lib/prawn/markup/builders/table_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def normalize_cell_hash(node, width, style_options)
if width.nil? && total_width
width = total_width - column_width_sum - ((columns_without_width - 1) * MIN_COL_WIDTH)
end
super(node, width, style_options)
super
end

def compute_column_widths
Expand Down
4 changes: 2 additions & 2 deletions lib/prawn/markup/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ def style_properties
end
end

def placeholder_value(keys, *args)
def placeholder_value(keys, *)
placeholder = dig_options(*keys)
return if placeholder.nil?

if placeholder.respond_to?(:call)
placeholder.call(*args)
placeholder.call(*)
else
placeholder.to_s
end
Expand Down

0 comments on commit 7229a4e

Please sign in to comment.