Skip to content

Commit 9028950

Browse files
drop unnecessary conditions
1 parent ca64859 commit 9028950

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

R/zzz.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,7 @@ remove_old_cache_files <- function() {
3131

3232
remove_cache_old_versions <- function() {
3333
dirs <- list.dirs(R.cache::getCachePath("styler"), recursive = FALSE)
34-
if (length(dirs) < 1) {
35-
return()
36-
}
3734
old_package_dirs <- dirs[basename(dirs) != as.character(styler_version)]
38-
if (length(old_package_dirs) < 1) {
39-
return()
40-
}
4135
purrr::walk(old_package_dirs, function(dir) {
4236
unlink(dir, recursive = TRUE, force = TRUE)
4337
})

0 commit comments

Comments
 (0)