Skip to content

Commit

Permalink
move declaration of cardinality before if-statement
Browse files Browse the repository at this point in the history
  • Loading branch information
prohde committed Aug 31, 2023
1 parent 77ebfa1 commit 627e8ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FedSDM/rdfmtmgt.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,8 @@ def get_rdfmt_nodes(graph: str = None) -> Tuple[dict, dict]:
'}'

res = _iterative_query(query, mdb, 9000)
if len(res) > 0:
card = len(res)
card = len(res)
if card > 0:
if card == 1 and 'subject' not in res[0]:
return {'nodes': [], 'sources': []}, {}
else:
Expand Down

0 comments on commit 627e8ed

Please sign in to comment.