Closed ydakuka closed 9 months ago
For some reasons, in the following code (without safe navigation operator) rubocop does not find any offenses too:
def my_method
outcome.select do |r|
# TODO: some code
end.first
end
I will close this as it seems to be a corner case and also appears to deviate from the semantics.
it seems to be a corner case
I fully disagree with this. It’s a common case for me to write code like this.
Describe the solution you'd like
Rubocop