[Fix #10566] Fix a false positive for `Lint/AmbiguousBlockAssociation` by koic · Pull Request #10567 · rubocop/rubocop

Fixes #10566. This PR fixes a false positive for Lint/AmbiguousBlockAssociation when using proc is used as a last argument. Before submitting the PR make sure the following are checked: The PR r...