Skip to content
Snippets Groups Projects
Commit 1453a861 authored by cahrens's avatar cahrens
Browse files

Minor code cleanup.

parent 089a1db6
No related branches found
Tags release-2021-03-16-09.35
No related merge requests found
......@@ -108,7 +108,7 @@ def subsection_handler(request, tag=None, package_id=None, branch=None, version_
subsection_units = item.get_children()
for unit in subsection_units:
state = compute_publish_state(unit)
if state == PublishState.public or state == PublishState.draft:
if state in (PublishState.public, PublishState.draft):
can_view_live = True
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment