Skip to content

Commit d3e2a0a

Browse files
always use pmin
1 parent acb31ca commit d3e2a0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

R/rules-line-breaks.R

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ style_line_break_around_curly <- function(strict, pd) {
158158
len_to_break <- sum(to_break)
159159
pd$lag_newlines[to_break] <- ifelse(
160160
pd$token[to_break] == "COMMENT",
161-
{
162-
if (strict) pmin else pmax
163-
}(1L, pd$lag_newlines[to_break]),
161+
pmin(1L, pd$lag_newlines[to_break]),
164162
1L
165163
)
166164
} else {

0 commit comments

Comments
 (0)