From 68977eb17a169adff7a5af2938f8d8b40ae78335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Keskis=C3=A4rkk=C3=A4?= Date: Tue, 4 Apr 2023 14:12:22 +0200 Subject: [PATCH] remove extra else block (resolves issue #186) --- pylode/utils.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pylode/utils.py b/pylode/utils.py index 1d36e2e..0a8eda4 100644 --- a/pylode/utils.py +++ b/pylode/utils.py @@ -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 = (