Skip to content

Commit

Permalink
Merge pull request #37 from hadley/dev-purrr
Browse files Browse the repository at this point in the history
Fix for dev purrr
  • Loading branch information
ramiromagno authored Dec 22, 2022
2 parents e990da5 + 7b2bade commit 286afa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/get_variants.R
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,11 @@ get_variants_by_gene_name <- function(gene_name = NULL, verbose = FALSE, warning
#' @keywords internal
get_variants_by_efo_trait <- function(efo_trait = NULL, verbose = FALSE, warnings = TRUE, page_size = 20L) {

if(rlang::is_null(efo_trait))
if(length(efo_trait) == 0)
return(variants())

assertthat::assert_that(
is.character(efo_trait),
length(efo_trait) > 0,
assertthat::noNA(efo_trait))

resource_urls <- sprintf("%s%s", "/singleNucleotidePolymorphisms/search/findByEfoTrait?efoTrait=",
Expand Down

0 comments on commit 286afa7

Please sign in to comment.