Skip to content

Commit

Permalink
Remove redundant ERB conditional
Browse files Browse the repository at this point in the history
All uses of the 'error_page' partial include a 'status_code'.
  • Loading branch information
Ben Thorner committed May 14, 2020
1 parent 4182a77 commit 405b02d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/views/root/_error_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@

<%= render "govuk_publishing_components/components/feedback" %>

<% if status_code %>
<script type="text/javascript">
window.httpStatusCode = '<%= status_code %>';
</script>
<% end %>
</main>
<% end %>

Expand Down

0 comments on commit 405b02d

Please sign in to comment.