Skip to content

Commit

Permalink
Update SarExtension.summaries
Browse files Browse the repository at this point in the history
  • Loading branch information
duckontheweb committed Jul 15, 2021
1 parent 2c0cc84 commit 5b25a43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pystac/extensions/sar.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 335,7 @@ def summaries(
cls, obj: pystac.Collection, add_if_missing: bool = False
) -> "SummariesSarExtension":
"""Returns the extended summaries object for the given collection."""
if not add_if_missing:
cls.validate_has_extension(obj)
else:
cls.add_to(obj)
cls.validate_has_extension(obj, add_if_missing)
return SummariesSarExtension(obj)


Expand Down

0 comments on commit 5b25a43

Please sign in to comment.