If the gallery view makes sure we have a user anyway, do we need this check?

Seems like the classic annoying "SHOULD NEVER HAPPEN" else: statement :)
This commit is contained in:
Christopher Allan Webber 2011-11-13 14:40:11 -06:00
parent 017d6ca350
commit 7fc25d2720

View File

@ -27,7 +27,6 @@
{% endblock mediagoblin_head %}
{% block mediagoblin_content -%}
{% if user %}
<h1>
{%- trans username=user.username,
user_url=request.urlgen(
@ -47,8 +46,4 @@
user=user.username) %}
{% include "mediagoblin/utils/feed_link.html" %}
</div>
{% else %}
{# This *should* not occur as the view makes sure we pass in a user. #}
<p>{% trans %}Sorry, no such user found.{% endtrans %}<p/>
{% endif %}
{% endblock %}