Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
otto-ifak authored and s-heppner committed Oct 3, 2023
1 parent bb5cfdd commit 6fd70b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions basyx/aas/adapter/xml/xml_deserialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ def _tag_replace_namespace(tag: str, nsmap: Dict[str, str]) -> str:
"""
split = tag.split("}")
for prefix, namespace in nsmap.items():
if prefix:
if namespace == split[0][1:]:
return prefix + ":" + split[1]
if prefix and namespace == split[0][1:]:
return prefix + ":" + split[1]
return tag


Expand Down

0 comments on commit 6fd70b8

Please sign in to comment.