Skip to content

Commit 3a3e4b1

Browse files
committed
doc: message about deletion by etag
1 parent 5123288 commit 3a3e4b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build_nhsn_archive.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,14 @@ update_nhsn_data_raw <- function() {
117117
# that have the same ETag. (I don't feel like rederiving AWS S3's ETag field
118118
# and computing ahead of time.)
119119
delete_df <- delete_duplicates_from_s3_by_etag(config$s3_bucket, config$raw_file_name_prefix, dry_run = FALSE)
120-
cli_inform("Deleted {nrow(delete_df)} duplicate files from S3.")
121120
if (nrow(delete_df) > 0) {
121+
cli_inform("Deleted {nrow(delete_df)} duplicate files from S3.")
122122
cli_inform("Deleted files:")
123123
cli_inform(paste0(" - ", delete_df$Key))
124124
} else {
125125
cli_inform("No duplicate files to delete.")
126126
}
127-
cli_inform("Finished downloading NHSN data.")
127+
cli_inform("Finished fetching NHSN data.")
128128
}
129129

130130
#' Process Raw NHSN Data File

0 commit comments

Comments
 (0)