chore: slice replace loop (#3410)

master
guangwu 1 year ago committed by GitHub
parent 61e562d0c7
commit f1171e01f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -219,9 +219,7 @@ func transferTokenNode(node *TokenNode, opt ...tokenNodeOption) *TokenNode {
}
}
if !option.ignoreLeadingComment {
for _, v := range node.LeadingCommentGroup {
result.LeadingCommentGroup = append(result.LeadingCommentGroup, v)
}
result.LeadingCommentGroup = append(result.LeadingCommentGroup, node.LeadingCommentGroup...)
}
return result
}

Loading…
Cancel
Save