Skip to content

Commit

Permalink
Update R/AbstractAnnData.R
Browse files Browse the repository at this point in the history
  • Loading branch information
rcannood authored Sep 19, 2023
1 parent 41af6c0 commit 663524d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/AbstractAnnData.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ AbstractAnnData <- R6::R6Class("AbstractAnnData", # nolint
)) {
attr_key <- paste0(attribute, "_keys")
if (!is.null(self[[attr_key]])) {
if (length(self[[attr_key]]()) > 0) {
cat(" ", pretty_print(attribute, self[[attr_key]]()), "\n", sep = "")
slot_keys <- self[[attr_key]]()
if (length(slot_keys) > 0) {
cat(" ", pretty_print(attribute, slot_keys, "\n", sep = "")
}
}
}
Expand Down

0 comments on commit 663524d

Please sign in to comment.