Skip to content

Commit

Permalink
Use allowed_line? instead of deprecated API
Browse files Browse the repository at this point in the history
Follow up 7c9e611
  • Loading branch information
koic committed Sep 18, 2022
1 parent 583c1ff commit 1670e9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/layout/indentation_width.rb
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def check_rescue?(rescue_node)
end

def skip_check?(base_loc, body_node)
return true if ignored_line?(base_loc)
return true if allowed_line?(base_loc)
return true unless body_node

# Don't check if expression is on same line as "then" keyword, etc.
Expand Down

0 comments on commit 1670e9e

Please sign in to comment.