Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use clearer rlang::check_exclusive for param checking in endpoints #222

Open
nmdefries opened this issue Nov 28, 2023 · 0 comments
Open
Labels
P3 very low priority

Comments

@nmdefries
Copy link
Contributor

Replace this kind of check for mutual exclusivity (appears in most of the endpoints, e.g.)

if (sum(!is.null(issues), !is.null(as_of)) > 1) {

with rlang::check_exclusive for improved readability. There's this snag though: r-lib/rlang#1647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 very low priority
Projects
None yet
Development

No branches or pull requests

1 participant