From 35cd8a927b14d840d313cc7360fe9789880db855 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 30 Nov 2024 19:29:10 +0000 Subject: [PATCH] pre-commit --- R/rules-line-breaks.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/rules-line-breaks.R b/R/rules-line-breaks.R index e29c8f603..4ae18b760 100644 --- a/R/rules-line-breaks.R +++ b/R/rules-line-breaks.R @@ -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 } -