Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Matejkob authored and github-actions[bot] committed Dec 31, 2023
1 parent 9491fc7 commit 4d5408d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Sources/SpyableMacro/Factories/SpyFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,22 @@ struct SpyFactory {
}
}

private extension SyntaxProtocol {
extension SyntaxProtocol {
/// - Returns: `self` with leading space `Trivia` removed.
var removingLeadingSpaces: Self {
fileprivate var removingLeadingSpaces: Self {
with(
\.leadingTrivia, Trivia(
pieces: leadingTrivia
\.leadingTrivia,
Trivia(
pieces:
leadingTrivia
.filter {
if case .spaces = $0 {
false
} else {
true
}
}
)
)
)
}
}

0 comments on commit 4d5408d

Please sign in to comment.