Skip to content

Commit

Permalink
fix weird case
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Aug 19, 2024
1 parent 28249cc commit b3e3c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dots.R
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ homonym_enum <- function(nm, dups, nms) {
# `x` always end up on the names of the output list,
# unlike `as.list.factor()`.
rlang_as_list <- function(x) {
if (inherits(x, "list")) {
if ("list" %in% class(x)) {
# `x` explicitly inherits from `"list"`, which we take it to mean
# that it has list storage (i.e. it's not a class like POSIXlt,
# it's not proxied, and it's not a scalar object like `"lm"`)
Expand Down

0 comments on commit b3e3c25

Please sign in to comment.