Skip to content

Commit 26160e2

Browse files
rm redundant condition
1 parent 11acfe6 commit 26160e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/as.data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ as.data.table.list = function(x,
139139
if(!isFALSE(keep.rownames)) {
140140
for (i in seq_len(n)) {
141141
xi = x[[i]]
142-
if (!is.null(xi) && is.atomic(xi) && !is.null(names(xi)) && is.null(dim(xi)) && length(names(xi)) > 0) {
142+
if (!is.null(xi) && is.atomic(xi) && !is.null(names(xi)) && is.null(dim(xi))) {
143143
valid_names = names(xi)
144144
if (any(nzchar(valid_names))) {
145145
vector_rownames = valid_names

0 commit comments

Comments
 (0)