Skip to content

Commit 71aa4c6

Browse files
dont subset with [[1]], since comments will return empty expression
1 parent d586527 commit 71aa4c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/transform-files.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ parse_tree_must_be_identical <- function(transformers) {
379379
verify_roundtrip <- function(old_text, new_text, parsable_only = FALSE) {
380380
if (parsable_only) {
381381
rlang::with_handlers(
382-
parse_text(new_text),
382+
parse_safely(new_text),
383383
error = function(e) {
384384
rlang::abort(paste0(
385385
"Styling resulted in code that isn't parsable. This should not ",

0 commit comments

Comments
 (0)