Skip to content

Commit

Permalink
refactor: simplify map() call to follow lintr's rec
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Jul 1, 2024
1 parent b797b8e commit 2003a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/layers.R
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ checkmate_crs <- function(sf, crs = NULL) {

standardise_crs <- function(out, crs = NULL) {
if (checkmate::test_class(out, "list")) {
purrr::map(out, ~ checkmate_crs(.x, crs = crs))
purrr::map(out, checkmate_crs, crs = crs)
} else {
checkmate_crs(out, crs = crs)
}
Expand Down

0 comments on commit 2003a2e

Please sign in to comment.