Skip to content

Commit

Permalink
revert "fix" to #1666; fixes #1760; continued in #1761
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Aug 17, 2021
1 parent 7e60ab3 commit f1397e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions R/valid.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ st_is_valid.sfc = function(x, ..., NA_on_exception = TRUE, reason = FALSE) {
ret
} else
CPL_geos_is_valid_reason(x)
} else #if (! NA_on_exception) {
} else if (! NA_on_exception) {
CPL_geos_is_valid(x, as.logical(NA_on_exception))
# } else {
# ret = vector("logical", length(x))
# for (i in seq_along(x))
# ret[i] = CPL_geos_is_valid(x[i], as.logical(NA_on_exception))
# ret
# }
} else {
ret = vector("logical", length(x))
for (i in seq_along(x))
ret[i] = CPL_geos_is_valid(x[i], as.logical(NA_on_exception))
ret
}
}

#' @export
Expand Down

0 comments on commit f1397e3

Please sign in to comment.