Skip to content

Commit ba82862

Browse files
committed
troublesome line fix
1 parent d8c094e commit ba82862

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

R/check-query.R

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,11 @@ check_query <- function(query, endpoint) {
4646

4747
apply_checks <- function(x, endpoint) {
4848
x <- swap_null_nms(x)
49-
if (names(x) %in% c("_not", "_and", "_or") || is.na(names(x))) {
50-
lapply(x, FUN = apply_checks)
49+
50+
# troublesome next line: 'length(x) = 2 > 1' in coercion to 'logical(1)'
51+
# if (names(x) %in% c("_not", "_and", "_or") || is.na(names(x))) {
52+
if (length(names(x)) > 1 || names(x) %in% c("_not", "_and", "_or") || is.na(names(x))) {
53+
lapply(x, FUN = apply_checks)
5154
} else if (names(x) %in% all_opr) {
5255
f1 <- flds_flt[flds_flt$field == names(x[[1]]), ]
5356
one_check(

0 commit comments

Comments
 (0)