Skip to content

Commit

Permalink
Minor fix to input check
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Feb 26, 2024
1 parent 8145fca commit be1f230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/searchAnalysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ NULL
setMethod("searchAnalysis", signature = c(x = "MgnifyClient"), function(
x, type, accession, ...){
############################### INPUT CHECK ################################
if( !(type %in% c("samples", "studies")) ){
if( !(length(type) == 1 && type %in% c("samples", "studies")) ){
stop(
"'type' must be 'samples' or 'studies'.", call. = FALSE)
}
Expand Down

0 comments on commit be1f230

Please sign in to comment.