We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8df2cb0 + 8b21c0a commit a05fc94Copy full SHA for a05fc94
Sources/SwiftFormatRules/GroupNumericLiterals.swift
@@ -59,15 +59,11 @@ public final class GroupNumericLiterals: SyntaxFormatRule {
59
}
60
61
newDigits = isNegative ? "-" + newDigits : newDigits
62
- guard
63
- let result = node.withDigits(
64
- SyntaxFactory.makeIntegerLiteral(
65
- newDigits,
66
- leadingTrivia: node.digits.leadingTrivia,
67
- trailingTrivia: node.digits.trailingTrivia))
68
- else {
69
- return ExprSyntax(node)
70
- }
+ let result = node.withDigits(
+ SyntaxFactory.makeIntegerLiteral(
+ newDigits,
+ leadingTrivia: node.digits.leadingTrivia,
+ trailingTrivia: node.digits.trailingTrivia))
71
return ExprSyntax(result)
72
73
0 commit comments