Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
zkamvar authored Dec 12, 2024
1 parent 089b5e8 commit 9660c5f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions R/check_tbl_derived_task_id_vals.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,10 @@ check_tbl_derived_task_id_vals <- function(
)[derived_task_ids]

setdiff_vals <- purrr::map2(
tbl[derived_task_ids], derived_task_id_vals,
\(.x, .y) {
setdiff(.x, .y)
}
tbl[derived_task_ids], derived_task_id_vals, setdiff
)

invalid_derived_task_ids <- purrr::map_lgl(
setdiff_vals,
\(.x) length(.x) > 0L
)
invalid_derived_task_ids <- lengths(setdiff_vals) > 0L

check <- !any(invalid_derived_task_ids)

Expand Down

0 comments on commit 9660c5f

Please sign in to comment.