Fix Style/ParenthesesAroundCondition rubocop issues

This commit is contained in:
Bertocq
2017-09-25 22:46:09 +02:00
parent 22822aa173
commit c5059f7292
3 changed files with 2 additions and 11 deletions

View File

@@ -88,7 +88,7 @@ class Debate < ActiveRecord::Base
def register_vote(user, vote_value)
if votable_by?(user)
Debate.increment_counter(:cached_anonymous_votes_total, id) if (user.unverified? && !user.voted_for?(self))
Debate.increment_counter(:cached_anonymous_votes_total, id) if user.unverified? && !user.voted_for?(self)
vote_by(voter: user, vote: vote_value)
end
end