Skip to content

Commit 2c0768b

Browse files
committed
lint: minor idiom tweak
1 parent 3386797 commit 2c0768b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/forecasters/forecaster_scaled_pop_seasonal.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ scaled_pop_seasonal <- function(
6363
epi_data <- validate_epi_data(epi_data)
6464
extra_sources <- unlist(extra_sources)
6565

66-
if (all(seasonal_method == c("none", "flu", "covid", "indicator", "window", "climatological"))) {
66+
if (identical(seasonal_method, c("none", "flu", "covid", "indicator", "window", "climatological"))) {
6767
seasonal_method <- "none"
6868
}
6969
# perform any preprocessing not supported by epipredict

0 commit comments

Comments
 (0)