Skip to content

Commit c96421e

Browse files
committed
warn_xy_duplicates(): don't error on empty input *
This is especially useful after masking: when nothing comes out of the spatial join, this internal function that checks for duplicate coordinates should not error.
1 parent 1f342b2 commit c96421e

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

R/sf.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ warn_xy_duplicates <- function(x, y) {
105105
assert_that(is.numeric(x))
106106
assert_that(is.numeric(y))
107107
assert_that(all.equal(length(x), length(y)))
108-
assert_that(length(x) > 0)
109108

110109
n_duplicated <-
111110
data.frame(x = x, y = y) %>%

0 commit comments

Comments
 (0)