Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and github-actions[bot] committed Nov 29, 2023
1 parent e4e3028 commit 9783b58
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ public enum DependencyEndpointMacro: AccessorMacro, PeerMacro {
parameters[i].secondName = TokenSyntax(stringLiteral: "p\(offset)")
parameters[i].colon = parameters[i].colon ?? .colonToken(trailingTrivia: .space)
}
let appliedParameters = parameters
let appliedParameters =
parameters
.map {
guard let typed = $0.type.as(AttributedTypeSyntax.self), typed.specifier?.tokenKind == .keyword(.inout)
guard let typed = $0.type.as(AttributedTypeSyntax.self),
typed.specifier?.tokenKind == .keyword(.inout)
else { return false }
return true
}
Expand Down

0 comments on commit 9783b58

Please sign in to comment.