Skip to content

Commit 63f14a5

Browse files
authored
Merge pull request #2307 from koic/enable_style_redundant_condition
Enable `Style/RedundantCondition` cop
2 parents 268815f + 45f4f92 commit 63f14a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.rubocop.yml

+4
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ Style/ColonMethodCall:
239239
Style/TrivialAccessors:
240240
Enabled: true
241241

242+
# Prefer a = b || c over a = b ? b : c
243+
Style/RedundantCondition:
244+
Enabled: true
245+
242246
Performance/BindCall:
243247
Enabled: true
244248

0 commit comments

Comments
 (0)