Fix Layout/SpaceAfterNot rubocop issue and remove from rubocop_todo list

This commit is contained in:
Bertocq
2017-06-21 22:35:28 +02:00
parent 9763931f55
commit 01263050a6
2 changed files with 1 additions and 7 deletions

View File

@@ -578,12 +578,6 @@ Layout/SpaceAfterComma:
- 'spec/models/abilities/moderator_spec.rb' - 'spec/models/abilities/moderator_spec.rb'
- 'spec/models/verification/management/email_spec.rb' - 'spec/models/verification/management/email_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
Layout/SpaceAfterNot:
Exclude:
- 'app/models/flag.rb'
# Offense count: 20 # Offense count: 20
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.

View File

@@ -23,7 +23,7 @@ class Flag < ActiveRecord::Base
def self.flagged?(user, flaggable) def self.flagged?(user, flaggable)
return false unless user return false unless user
!! by_user_and_flaggable(user, flaggable).try(:first) !!by_user_and_flaggable(user, flaggable).try(:first)
end end
end end