Skip to content

Commit ad2381b

Browse files
committed
fix codefactor issue
1 parent 78f2c16 commit ad2381b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/helper.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ check_smpl_split = function(smpl, n_obs, check_intersect = FALSE) {
425425
assert_subset(test_ids, seq(n_obs))
426426
})
427427
if (check_intersect) {
428-
for (i_fold in seq(length(length(smpl$train_ids))))
428+
for (i_fold in seq_along(length(length(smpl$train_ids))))
429429
{
430430
assert_disjunct(smpl$train_ids[[i_fold]], smpl$test_ids[[i_fold]])
431431
}

0 commit comments

Comments
 (0)