Skip to content

Commit 6fd70b8

Browse files
bjoern-ottos-heppner
authored andcommitted
Simplify condition
1 parent bb5cfdd commit 6fd70b8

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

basyx/aas/adapter/xml/xml_deserialization.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ def _tag_replace_namespace(tag: str, nsmap: Dict[str, str]) -> str:
8585
"""
8686
split = tag.split("}")
8787
for prefix, namespace in nsmap.items():
88-
if prefix:
89-
if namespace == split[0][1:]:
90-
return prefix + ":" + split[1]
88+
if prefix and namespace == split[0][1:]:
89+
return prefix + ":" + split[1]
9190
return tag
9291

9392

0 commit comments

Comments
 (0)