Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Style/HashAsLastArrayItem with no_braces for empty hash #8681

Merged
merged 2 commits into from Sep 15, 2020
Merged

Fix Style/HashAsLastArrayItem with no_braces for empty hash #8681

merged 2 commits into from Sep 15, 2020

Commits on Sep 14, 2020

  1. Fix an error for Style/HashAsLastArrayItem with no_braces for empty hash

    When `EnforcedStyle` is set to `no_braces`, rubocop was attempting to
    correct `[1, {}]` into `[1, ]`, which is not valid. An empty hash cannot
    omit the braces.
    fsateler committed Sep 14, 2020
    Copy the full SHA
    28778a6 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2020

  1. Copy the full SHA
    8836125 View commit details
    Browse the repository at this point in the history