Skip to content

Commit

Permalink
revert c() inside as.IDate
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Jan 4, 2024
1 parent dbd88dc commit 881431b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ enw_example <- function(type = c(
#' )
coerce_date <- function(dates) {
if (is.null(dates)) {
return(data.table::as.IDate(c()))
return(data.table::as.IDate(numeric()))
}
if (length(dates) == 0) {
return(data.table::as.IDate(dates))
Expand Down

0 comments on commit 881431b

Please sign in to comment.