Skip to content

Commit

Permalink
Update src/polygons.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Anshul Singhvi <[email protected]>
  • Loading branch information
rafaqz and asinghvi17 authored Apr 1, 2024
1 parent 85b4873 commit a7e0489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polygons.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function GI.getgeom(::GI.MultiPolygonTrait, geom::AbstractPolygon, i::Integer)
return SubPolygon(rings)
end
function GI.getgeom(::GI.MultiPolygonTrait, geom::AbstractPolygon{T}) where {T}
if length(geom.indexcache) == 0
if isempty(geom.indexcache)
_build_cache!(geom)
end
return map(geom.indexcache) do indices
Expand Down

0 comments on commit a7e0489

Please sign in to comment.