Skip to content

Commit ff87a71

Browse files
committed
use identical to compare as_of and issues to *
1 parent 8e4fb6c commit ff87a71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ check_is_recent <- function(dates, max_age) {
2929
#'
3030
#' @keywords internal
3131
check_is_cachable <- function(epidata_call, fetch_args) {
32-
as_of_cachable <- (!is.null(epidata_call$params$as_of) && epidata_call$params$as_of != "*")
33-
issues_cachable <- (!is.null(epidata_call$params$issues) && all(epidata_call$params$issues != "*"))
32+
as_of_cachable <- (!is.null(epidata_call$params$as_of) && !identical(epidata_call$params$as_of, "*"))
33+
issues_cachable <- (!is.null(epidata_call$params$issues) && all(!identical(epidata_call$params$issues, "*")))
3434
is_cachable <- (
3535
!is.null(cache_environ$epidatr_cache) &&
3636
(as_of_cachable || issues_cachable) &&

0 commit comments

Comments
 (0)