Skip to content

Commit 56ff21f

Browse files
committed
correct a weird warning message
1 parent 7aff807 commit 56ff21f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

R/read.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,10 @@ combine_results <- function(existing, chunk, type) {
325325
#' @noRd
326326
validate_template_version <- function(template_version, guide) {
327327
if (grepl("^\\d+$", template_version)) {
328+
template_version_curr <- template_version
328329
template_version <- paste0(template_version, ".0")
329330
rlang::warn(glue::glue(
330-
"Incorrectly formatted template version number '{template_version}'. Version numbers must have a minor number. Interpreting as '{template_version}'."
331+
"Incorrectly formatted template version number '{template_version_curr}'. Version numbers must have a minor number. Interpreting as '{template_version}'."
331332
))
332333
}
333334

0 commit comments

Comments
 (0)