Skip to content

Commit

Permalink
Linting auto-correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thorner committed Jun 12, 2020
1 parent e4e3ca8 commit a9cec97
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions app/presenters/content_item/corporate_information_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ def corporate_information?
def corporate_information
corporate_information_groups.map do |group|
{
heading: view_context.content_tag(
:h3,
heading: view_context.tag.h3(
group["name"],
id: group_title_id(group["name"]),
),
Expand All @@ -20,8 +19,7 @@ def corporate_information
end

def corporate_information_heading_tag
view_context.content_tag(
:h2,
view_context.tag.h2(
corporate_information_heading[:text],
id: corporate_information_heading[:id],
)
Expand Down
3 changes: 1 addition & 2 deletions app/presenters/content_item/withdrawable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ def withdrawal_notice_context
end

def withdrawal_notice_time
view_context.content_tag(
:time,
view_context.tag.time(
english_display_date(withdrawal_notice["withdrawn_at"]),
datetime: withdrawal_notice["withdrawn_at"],
)
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/speech_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def location

def delivered_on
delivered_on_date = content_item["details"]["delivered_on"]
view_context.content_tag(:time, display_date(delivered_on_date), datetime: delivered_on_date)
view_context.tag.time(display_date(delivered_on_date), datetime: delivered_on_date)
end

def speech_type_explanation
Expand Down
2 changes: 1 addition & 1 deletion app/presenters/travel_advice_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def alert_status
alert_statuses = alert_statuses.map do |alert|
if allowed_statuses.include?(alert)
copy = I18n.t("travel_advice.alert_status.#{alert}").html_safe
view_context.content_tag(:p, copy)
view_context.tag.p(copy)
end
end

Expand Down

0 comments on commit a9cec97

Please sign in to comment.