Skip to content

Commit

Permalink
Remove useless "&". Thanks @dvandersluis
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Oct 7, 2024
1 parent 43a4b2c commit 97a3b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/ast/node/block_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ def arguments?
#
# @return [Boolean] whether the `block` literal is enclosed in braces
def braces?
loc.end&.is?('}')
loc.end.is?('}')
end

# Checks whether the `block` literal is delimited by `do`-`end` keywords.
#
# @return [Boolean] whether the `block` literal is enclosed in `do`-`end`
def keywords?
loc.end&.is?('end')
loc.end.is?('end')
end

# The delimiters for this `block` literal.
Expand Down

0 comments on commit 97a3b51

Please sign in to comment.