Skip to content

Commit

Permalink
delint
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Jul 23, 2024
1 parent 184ab67 commit 2019df1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/mailers/teacher_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ def set_body
# Must be called after @teacher is set.
def set_recipients
@recipients = Liquid::Template.parse(email_template.to).render(liquid_assigns).html_safe
@recipients = @recipients.split(',').
@recipients = @recipients.split(",").
map { |addr| addr.strip }.
filter { |addr| addr != '(blank)' || addr.blank? }.compact

filter { |addr| addr != "(blank)" || addr.blank? }.compact
end
end
2 changes: 1 addition & 1 deletion spec/models/email_template_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
end

it "returns false if no reason is in the body" do
template = EmailTemplate.new(body: '')
template = EmailTemplate.new(body: "")
expect(template.accepts_custom_reason?).to be false
end
end
Expand Down

0 comments on commit 2019df1

Please sign in to comment.