Fix Layout/SpaceAfterNot rubocop issue and remove from rubocop_todo list
This commit is contained in:
@@ -578,12 +578,6 @@ Layout/SpaceAfterComma:
|
||||
- 'spec/models/abilities/moderator_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
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
||||
|
||||
@@ -23,7 +23,7 @@ class Flag < ActiveRecord::Base
|
||||
|
||||
def self.flagged?(user, flaggable)
|
||||
return false unless user
|
||||
!! by_user_and_flaggable(user, flaggable).try(:first)
|
||||
!!by_user_and_flaggable(user, flaggable).try(:first)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user