remove redundant parameters check

I believe parameters itself would be None if there were no next parameter
This commit is contained in:
Brent Westbrook 2025-12-09 17:17:26 -05:00
parent 2da4798def
commit acc49ac1e7
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1848,7 +1848,7 @@ fn handle_lambda_comment<'a>(
// ) // )
// ``` // ```
if comment.start() < parameters.start() { if comment.start() < parameters.start() {
return if parameters.iter().next().is_some() && comment.line_position().is_own_line() { return if comment.line_position().is_own_line() {
CommentPlacement::leading(parameters, comment) CommentPlacement::leading(parameters, comment)
} else { } else {
CommentPlacement::dangling(comment.enclosing_node(), comment) CommentPlacement::dangling(comment.enclosing_node(), comment)