Skip to content

Commit

Permalink
remove extra else block (resolves issue RDFLib#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
keski committed Apr 4, 2023
1 parent 802acdd commit 68977eb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions pylode/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,15 +635,15 @@ def _restriction_html(ont__, obj__, ns__):
span(card, _class="cardinality"),
raw(_rdf_obj_single_html),
)
else:
card = span(
span(card, _class="cardinality"),
span(
_hyperlink_html(
ont__, back_onts_, ns__, o, fids_, OWL.Class
)
),
)

card = span(
span(card, _class="cardinality"),
span(
_hyperlink_html(
ont__, back_onts_, ns__, o, fids_, OWL.Class
)
),
)

restriction = span(prop, card, br()) if card is not None else prop
restriction = (
Expand Down

0 comments on commit 68977eb

Please sign in to comment.