Skip to content

Commit

Permalink
update conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Aug 8, 2023
1 parent 2b111bc commit f7d8a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/MultiAssayExperiment-class.R
Expand Up @@ -451,7 +451,7 @@ setMethod("show", "MultiAssayExperiment", function(object) {
o_class <- class(object)
o_len <- length(object)
o_names <- names(object)
if (length(o_names) == 0L) {
if (!length(o_names)) {
o_names <- "none"
}
c_elist <- class(experiments(object))
Expand All @@ -461,7 +461,7 @@ setMethod("show", "MultiAssayExperiment", function(object) {
"object of", o_len, "listed\n",
ifelse(o_len == 1L, "experiment", "experiments"),
"with",
ifelse(all(o_names == "none"), "no user-defined names",
ifelse(identical(o_names, "none"), "no user-defined names",
ifelse(length(o_names) == 1L, "a user-defined name",
"user-defined names")),
ifelse(length(o_len) == 0L, "or", "and"),
Expand Down

0 comments on commit f7d8a9c

Please sign in to comment.