Skip to content

Commit

Permalink
Merge pull request #551 from Shopify/enable-IfWithBooleanLiteralBranches
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock committed Jun 27, 2023
2 parents 84ce09e + 489c97e commit a5ce6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ Style/IfUnlessModifier:
Enabled: false

Style/IfWithBooleanLiteralBranches:
Enabled: false
Enabled: true

Style/InPatternThen:
Enabled: true
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/full_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3009,7 +3009,7 @@ Style/IfUnlessModifierOfIfUnless:
VersionChanged: '0.87'
Style/IfWithBooleanLiteralBranches:
Description: Checks for redundant `if` with boolean literal branches.
Enabled: false
Enabled: true
VersionAdded: '1.9'
SafeAutoCorrect: false
AllowedMethods:
Expand Down

0 comments on commit a5ce6e1

Please sign in to comment.