Add and apply Style/SoleNestedConditional rule
We were already applying it in most places.
This commit is contained in:
@@ -517,6 +517,9 @@ Style/RedundantSelf:
|
|||||||
Style/SafeNavigation:
|
Style/SafeNavigation:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Style/SoleNestedConditional:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Style/StringLiterals:
|
Style/StringLiterals:
|
||||||
EnforcedStyle: double_quotes
|
EnforcedStyle: double_quotes
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ class CommentNotifier
|
|||||||
private
|
private
|
||||||
|
|
||||||
def send_comment_email
|
def send_comment_email
|
||||||
unless @comment.commentable.is_a?(Legislation::Annotation)
|
if !@comment.commentable.is_a?(Legislation::Annotation) && email_on_comment?
|
||||||
Mailer.comment(@comment).deliver_later if email_on_comment?
|
Mailer.comment(@comment).deliver_later
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user