Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 30, 2024
1 parent a2014dc commit 35cd8a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/rules-line-breaks.R
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,10 @@ remove_empty_lines_after_opening_and_before_closing_braces <- function(pd) {

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

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

pd
}

0 comments on commit 35cd8a9

Please # to comment.