Skip to content

Commit 35cd8a9

Browse files
pre-commit
1 parent a2014dc commit 35cd8a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/rules-line-breaks.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,10 @@ remove_empty_lines_after_opening_and_before_closing_braces <- function(pd) {
451451

452452
reduce_extra_blank_lines_between_scopes <- function(pd, allowed_blank_lines = 2L) {
453453
# Calculate the maximum allowed lag_newlines
454-
max_lag_newlines <- allowed_blank_lines + 1L # +1 accounts for the line with the previous token
454+
max_lag_newlines <- allowed_blank_lines + 1L # +1 accounts for the line with the previous token
455455

456456
# cap lag_newlines at max_lag_newlines
457457
pd$lag_newlines <- pmin(pd$lag_newlines, max_lag_newlines)
458458

459459
pd
460460
}
461-

0 commit comments

Comments
 (0)