Skip to content

Commit 72d5063

Browse files
save a line+variable
1 parent 6ddccd9 commit 72d5063

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/data.table.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,14 @@ replace_dot_alias = function(e) {
139139
)
140140
}
141141
if (is.character(j)) {
142-
idx = match(j, names(k))
143-
if (is.na(idx)) {
142+
j = match(j, names(k))
143+
if (is.na(j)) {
144144
if (is.null(err_msg_na)) {
145145
internal_error("item '%s' not found in names of list", origj) # nocov
146146
} else {
147147
stopf(err_msg_na, origj)
148148
}
149149
}
150-
j = idx
151150
}
152151
.Call(Csetlistelt, k, as.integer(j), value)
153152
} else if (is.environment(k) && exists(as.character(name[[3L]]), k, inherits = FALSE)) {

0 commit comments

Comments
 (0)