Skip to content

Commit

Permalink
Make code look more intentional
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Jul 17, 2023
1 parent 149a29f commit 633b7bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/query.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ query_parse <- function(expr, context, subquery_env) {
}
expr <- expr[[1L]]
}
} else if (is.null(expr)) {
} else if (!is.language(expr)) {
} else if (!(is.null(expr) || is.language(expr))) {
stop("Invalid input for query")
}

Expand Down

0 comments on commit 633b7bb

Please sign in to comment.