Skip to content

Commit 7e5ef41

Browse files
jhnwllrCopilot
andauthored
Update R/download_predicate_dsl.R
Co-authored-by: Copilot <[email protected]>
1 parent c1fc65e commit 7e5ef41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/download_predicate_dsl.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ pred_factory <- function(type) {
309309
if (!length(key) == 1) stop("'key' must be length 1", call. = FALSE)
310310
if (!length(value) == 1) stop("'value' must be length 1", call. = FALSE)
311311
if (!is.null(checklistKey)) {
312-
if (key != "taxonKey") {
313-
stop("`checklistKey` can only be used when `key` is 'taxonKey'", call. = FALSE)
312+
if (!key %in% c("taxonKey", "TAXON_KEY")) {
313+
stop("`checklistKey` can only be used when `key` is 'taxonKey' or 'TAXON_KEY'", call. = FALSE)
314314
}
315315
if (!is_uuid(checklistKey)) {
316316
stop("`checklistKey` must be a valid UUID", call. = FALSE)

0 commit comments

Comments
 (0)