Skip to content

Commit

Permalink
Merge pull request #302 from epiforecasts/fix-rt-null
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk authored Jul 20, 2022
2 parents 888788f + 09f7bfd commit c0b18c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/estimate_infections.R
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ estimate_infections <- function(reported_cases,
# store dirty reported case data
dirty_reported_cases <- data.table::copy(reported_cases)

if (!rt$use_rt) {
if (!is.null(rt) && !rt$use_rt) {
rt <- NULL
}

Expand Down

0 comments on commit c0b18c5

Please sign in to comment.