Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Jan 7, 2025
1 parent 10171e0 commit 84b7552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/asciidoctor/reducer/tree_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def process doc

def flatten input_list
input_list.flatten
rescue ::Exception => ex
raise unless `ex.name === 'RangeError'`
rescue ::Exception => e # rubocop:disable Lint/RescueException,Lint/UselessAssignment
raise unless %x(e.name) == 'RangeError'
result = []
stack = [[0, input_list, input_list.length]]
until stack.empty?
Expand Down

0 comments on commit 84b7552

Please sign in to comment.