Skip to content

Commit

Permalink
Merge else clause's nested if statement into elif
Browse files Browse the repository at this point in the history
  • Loading branch information
bpepple committed Oct 9, 2021
1 parent a847a5b commit 9e8feae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions darkseid/comicinfoxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ def indent(self, elem: ET.Element, level: int = 0) -> None:
self.indent(elem, level + 1)
if not elem.tail or not elem.tail.strip():
elem.tail = i
else:
if level and (not elem.tail or not elem.tail.strip()):
elem.tail = i
elif level and (not elem.tail or not elem.tail.strip()):
elem.tail = i

def convert_metadata_to_xml(self, metadata: GenericMetadata) -> ET.ElementTree:

Expand Down

0 comments on commit 9e8feae

Please sign in to comment.