Return boolean

This commit is contained in:
Vitalii Elenhaupt 2022-04-03 19:43:51 +03:00
parent 087f470f15
commit 2f29999106
No known key found for this signature in database
GPG key ID: CD0BF17825928BC0

View file

@ -90,7 +90,7 @@ module Ameba::Rule::Style
end
private def redundant_begin_in_expressions?(node)
node.keyword.try &.begin?
!!(node.keyword.try &.begin?)
end
private def inner_handler?(handler)