Skip to content

Commit

Permalink
empty files should outweigh git tracking for deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Jun 11, 2024
1 parent 3024454 commit 08c1622
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/open.R
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ active_rs_doc_delete <- function() {
file_info <- dplyr::select(file_info, !dplyr::where(\(x) all(is.na(x))))
file_info <- dplyr::select(file_info, !dplyr::any_of(rm_duplicate_columns(file_info)))
if (!is.null(file_info$size) && all(file_info$size == 0)) {
will_delete <- append(will_delete, TRUE)
will_delete <- append(will_delete, c(TRUE, TRUE))
reasons_deleting <- c(reasons_deleting, "file is empty")
file_info$size <- NULL
}
Expand Down

0 comments on commit 08c1622

Please sign in to comment.