Skip to content

Commit

Permalink
mitigate file_diff_chr() overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Jan 3, 2025
1 parent edb59d6 commit fafbe43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/class_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ file_info <- function(files, trust_timestamps = NULL) {
}

file_time <- function(info) {
file_diff_chr(max(info$mtime_numeric %||% 0))
file_diff_chr(max(.subset2(info, "mtime_numeric") %||% 0))
}

file_time_now <- function() {
Expand Down

0 comments on commit fafbe43

Please sign in to comment.