Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Nov 22, 2022
1 parent 4c8f24e commit 4fa0801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ remove_old_cache_files <- function() {
remove_cache_old_versions <- function() {
dirs <- list.dirs(R.cache::getCachePath("styler"), recursive = FALSE)
old_package_dirs <- dirs[basename(dirs) != as.character(styler_version)]
purrr::walk(old_package_dirs, unlink, dir, recursive = TRUE, force = TRUE)
purrr::walk(old_package_dirs, unlink, recursive = TRUE, force = TRUE)
}

# nocov end

0 comments on commit 4fa0801

Please sign in to comment.