Skip to content

Commit

Permalink
refactor: apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenuial committed Sep 19, 2024
1 parent 037e9e3 commit 483931f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,9 @@ render_quarto_lang <- function(language_code, path, output_dir, type) {
)
freeze_ls <- fs::dir_ls(freeze_path, recurse = TRUE)

freeze_lang <- freeze_ls[grep(paste0("\\.", language_code, "$"), freeze_ls)]
freeze_lang <- purrr::keep(
freeze_ls, \(x) grep(paste0("\\.", language_code, "$"), x)
)
freeze_dirs <- fs::path_rel(freeze_lang, start = freeze_path)
freeze_dirs <- gsub(
paste0(".", language_code), "",
Expand Down

0 comments on commit 483931f

Please sign in to comment.