Skip to content

Commit cc3b83c

Browse files
dshemetovdsweber2
andauthored
Update R/utils.R
Co-authored-by: David Weber <david.weber2@pm.me>
1 parent d455571 commit cc3b83c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

R/utils.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ write_submission_file <- function(pred, forecast_reference_date, submission_dire
281281
#' Utility to get the reference date for a given date. This is the last day of
282282
#' the epiweek that the date falls in.
283283
get_forecast_reference_date <- function(date) {
284-
if (!lubridate::is.Date(date)) {
285284
date <- as.Date(date)
286-
}
287285
MMWRweek::MMWRweek2Date(lubridate::epiyear(date), lubridate::epiweek(date)) + 6
288286
}
289287

0 commit comments

Comments
 (0)