Skip to content

Commit 167e2ff

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent f88b07c commit 167e2ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/CasePathsMacros/CasePathableMacro.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,13 @@ extension CasePathableMacro: MemberMacro {
140140
let leadingTriviaLines = decl.leadingTrivia.description
141141
.drop(while: \.isNewline)
142142
.split(separator: "\n", omittingEmptySubsequences: false)
143-
let indent = leadingTriviaLines
143+
let indent =
144+
leadingTriviaLines
144145
.compactMap { $0.isEmpty ? nil : $0.prefix(while: \.isWhitespace).count }
145146
.min(by: { (lhs: Int, rhs: Int) -> Bool in lhs == 0 ? lhs > rhs : lhs < rhs })
146147
?? 0
147-
let leadingTrivia = leadingTriviaLines
148+
let leadingTrivia =
149+
leadingTriviaLines
148150
.map { String($0.dropFirst(indent)) }
149151
.joined(separator: "\n")
150152
return """

0 commit comments

Comments
 (0)