Skip to content

Commit

Permalink
Don't indent() an empty message (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Nov 14, 2021
1 parent f8ccf03 commit ccc4194
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/snapshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,8 @@ local_snapshot_dir <- function(snap_names, .env = parent.frame()) {
path
}

indent <- function(x) paste0(" ", x)
# if transform() wiped out the full message, don't indent, #1487
indent <- function(x) if (length(x)) paste0(" ", x) else x

check_variant <- function(x) {
if (is.null(x)) {
Expand Down

0 comments on commit ccc4194

Please sign in to comment.