Skip to content

Commit

Permalink
Make Rubocop happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pointlessone committed Jan 25, 2024
1 parent 7cf096d commit 006917f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@ Style/Encoding:
- lib/prawn/images/png.rb
- lib/prawn/images.rb
- spec/png_spec.rb

RSpec/FilePath:
Exclude:
- spec/prawn/fonts/to_unicode_cmap_spec.rb
4 changes: 2 additions & 2 deletions lib/prawn/fonts/to_unicode_cmap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def mapping_spans(mapping)
mapping
.sort
.slice_when { |a, b| (b[0] - a[0]) != 1 } # Slice at key discontinuity
.flat_map { |slice|
.flat_map { |slice| # rubocop: disable Style/BlockDelimiters
if slice.length == 1
[[:short, slice]]
else
Expand All @@ -133,7 +133,7 @@ def mapping_spans(mapping)
.map { |span| span.length > 1 ? [:index_sorted, span] : [:short, slice] } +
continuous_slices.map { |span| [:fully_sorted, span] }
end
}
} # rubocop: disable Style/MultilineBlockChain
.sort_by { |span| span[1][0][0] } # Sort span start key
end
end
Expand Down

0 comments on commit 006917f

Please sign in to comment.