diff --git a/fastkml/kml.py b/fastkml/kml.py index 848f1614..39c31a54 100644 --- a/fastkml/kml.py +++ b/fastkml/kml.py @@ -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)