Skip to content

Commit

Permalink
Fix sonar issues
Browse files Browse the repository at this point in the history
Signed-off-by: HUG0-D <[email protected]>
  • Loading branch information
HUG0-D committed Nov 20, 2024
1 parent 57906d3 commit 0923d3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cimgen/languages/modernpython/utils/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ def _check_metadata(self, elem):
break
# the author of all imported files should be the same, avoid multiple entries
elif "author" not in self.import_result["meta_info"].keys():
if "Model.createdBy" in elem.tag:
self.import_result["meta_info"]["author"] = elem.text
elif "Model.modelingAuthoritySet" in elem.tag:
if any(author_field in elem.tag for author_field in ("Model.createdBy", "Model.modelingAuthoritySet")):
self.import_result["meta_info"]["author"] = elem.text

# Returns a map of class_namespace to namespace for the given XML file.
Expand Down

0 comments on commit 0923d3c

Please sign in to comment.