Skip to content

Commit

Permalink
clearer code
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Aug 28, 2024
1 parent d7f4228 commit cf81e2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/tar_repository_cas_local.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ tar_cas_u <- function(cas, key, path) {
cas <- cas %|||% path_cas_dir(tar_runtime$store)
to <- file.path(cas, key)
if (!file.exists(to)) {
if_any(
identical(tar_definition()$settings$format, "file"),
file_copy(path, to), # Defined in R/utils_files.R for files & dirs.
if (identical(tar_format_get(), "file")) {
file_copy(path, to) # Defined in R/utils_files.R for files & dirs.
} else {
file_move(path, to) # Defined in R/utils_files.R for files & dirs.
)
}
}
}

Expand Down

0 comments on commit cf81e2b

Please sign in to comment.