Skip to content

Commit 311f145

Browse files
remove any(nzchar(nm))
1 parent 13ed346 commit 311f145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/as.data.table.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ as.data.table.list = function(x,
146146
if (is.null(xi)) next # eachncol already initialized to 0 by integer() above
147147
if (check_rownames && is.null(rownames_)) {
148148
if (is.null(dim(xi))) {
149-
if (!is.null(nm <- names(xi)) && any(nzchar(nm))) {
149+
if (!is.null(nm <- names(xi))) {
150150
rownames_ = nm
151151
x[[i]] = unname(xi)
152152
}
153153
} else {
154-
if (!is.null(nm <- rownames(xi)) && any(nzchar(nm))) {
154+
if (!is.null(nm <- rownames(xi))) {
155155
rownames_ = nm
156156
}
157157
}

0 commit comments

Comments
 (0)