Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Oct 15, 2023
1 parent c71625e commit 69555ac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fastkml/kml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1681,9 +1681,7 @@ def __init__(

@property
def geometry(self) -> Optional[AnyGeometryType]:
if self._geometry is not None:
return self._geometry.geometry
return None
return self._geometry.geometry if self._geometry is not None else None

def from_element(self, element: Element, strict=False) -> None:
super().from_element(element)
Expand Down

0 comments on commit 69555ac

Please sign in to comment.