Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoVilela committed Nov 15, 2023
1 parent 3614db9 commit dc486d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/defensive_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
if (!terra_check) {
stop("all shapefiles provided should be a SpatVector object.")
}
if (!terra::is.valid(shape)) {
if (!all(terra::is.valid(shape))) {
shape <- terra::makeValid(shape)
}
return(shape)
Expand Down

0 comments on commit dc486d1

Please sign in to comment.