Skip to content

Commit

Permalink
Update method-filterFeatures.R
Browse files Browse the repository at this point in the history
  • Loading branch information
philouail committed Jan 29, 2024
1 parent d262e1e commit e31c525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/method-filterFeatures.R
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,6 @@ setMethod("filterFeatures",

#' @noRd
.check_index_range <- function(x, l, name = "") {
if (!all(x %in% seq_len(l)) | length(x) == 0)
if (length(x) == 0 || !all(x %in% seq_len(l))) # check that work ??
stop(name, " should be between 1 and ", l)
}

0 comments on commit e31c525

Please sign in to comment.