Add and apply Style/IfWithBooleanLiteralBranches
This rule was added in Rubocop 1.9.0.
This commit is contained in:
@@ -469,6 +469,9 @@ Style/HashSyntax:
|
||||
Style/IdenticalConditionalBranches:
|
||||
Enabled: true
|
||||
|
||||
Style/IfWithBooleanLiteralBranches:
|
||||
Enabled: true
|
||||
|
||||
Style/MethodDefParentheses:
|
||||
Enabled: true
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class Poll
|
||||
has_many :recounts
|
||||
|
||||
def shifts?
|
||||
shifts.empty? ? false : true
|
||||
!shifts.empty?
|
||||
end
|
||||
|
||||
def unable_to_destroy?
|
||||
|
||||
Reference in New Issue
Block a user