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 RuboCop offense #321

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Fix RuboCop offense #321

merged 1 commit into from
Oct 16, 2024

Conversation

Earlopain
Copy link
Contributor

From rubocop/rubocop#13312, probably

$ bundle exec rubocop
Inspecting 165 files
..............................W......................................................................................................................................

Offenses:

lib/rubocop/ast/node/if_node.rb:105:45: W: [Correctable] Lint/SafeNavigationConsistency: Use . instead of unnecessary &..
        else_branch&.if_type? && else_branch&.elsif?
                                            ^^

165 files inspected, 1 offense detected, 1 offense autocorrectable

From rubocop/rubocop#13312, probably

```
$ bundle exec rubocop
Inspecting 165 files
..............................W......................................................................................................................................

Offenses:

lib/rubocop/ast/node/if_node.rb:105:45: W: [Correctable] Lint/SafeNavigationConsistency: Use . instead of unnecessary &..
        else_branch&.if_type? && else_branch&.elsif?
                                            ^^

165 files inspected, 1 offense detected, 1 offense autocorrectable
```
@koic koic merged commit 7414167 into rubocop:master Oct 16, 2024
19 checks passed
@Earlopain Earlopain deleted the fix-linting branch October 24, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants