DEV: Apply syntax_tree formatting to app/*

This commit is contained in:
David Taylor
2023-01-09 12:20:10 +00:00
parent a641ce4b62
commit 5a003715d3
696 changed files with 18447 additions and 15481 deletions

View File

@@ -1,7 +1,6 @@
# frozen_string_literal: true
class EmailStyleUpdater
attr_reader :errors
def initialize(user)
@@ -10,11 +9,8 @@ class EmailStyleUpdater
end
def update(attrs)
if attrs.has_key?(:html) && !attrs[:html].include?('%{email_content}')
@errors << I18n.t(
'email_style.html_missing_placeholder',
placeholder: '%{email_content}'
)
if attrs.has_key?(:html) && !attrs[:html].include?("%{email_content}")
@errors << I18n.t("email_style.html_missing_placeholder", placeholder: "%{email_content}")
end
if attrs.has_key?(:css)