Skip to content

Commit

Permalink
Merge pull request #1692 from rubocop/correct_offense
Browse files Browse the repository at this point in the history
Correct some offenses for RuboCop v1.56.0
  • Loading branch information
ydah authored Aug 9, 2023
2 parents 744347c + 1c276e8 commit 03df044
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rubocop/cop/rspec/void_expect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def void?(expect)
parent = expect.parent
return true unless parent
return true if parent.begin_type?
return true if parent.block_type? && parent.body == expect

true if parent.block_type? && parent.body == expect
end
end
end
Expand Down

0 comments on commit 03df044

Please sign in to comment.