Skip to content

Commit 45f4f92

Browse files
committed
Enable Style/RedundantCondition cop
Follow up rails/rails#45631
1 parent 268815f commit 45f4f92

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)