mirror of https://github.com/rails/rails
Enable `Style/RedundantCondition` cop
This commit is contained in:
parent
e8f189b1cb
commit
86519996f9
|
@ -266,6 +266,10 @@ Style/ColonMethodCall:
|
||||||
Style/TrivialAccessors:
|
Style/TrivialAccessors:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
# Prefer a = b || c over a = b ? b : c
|
||||||
|
Style/RedundantCondition:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Performance/BindCall:
|
Performance/BindCall:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|
|
@ -297,7 +297,7 @@ module ActiveRecord
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
query_value("SELECT setval(#{quote(quoted_sequence)}, #{max_pk ? max_pk : minvalue}, #{max_pk ? true : false})", "SCHEMA")
|
query_value("SELECT setval(#{quote(quoted_sequence)}, #{max_pk || minvalue}, #{max_pk ? true : false})", "SCHEMA")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue