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 Nov 21, 2023
1 parent ec35473 commit 6e05626
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Sources/SpyableMacro/Factories/AssociatedtypeFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ import SwiftSyntaxBuilder
/// ```

struct AssociatedtypeFactory {
func constructGenericParameterClause(associatedtypeDeclList: [AssociatedTypeDeclSyntax]) -> GenericParameterClauseSyntax? {
func constructGenericParameterClause(associatedtypeDeclList: [AssociatedTypeDeclSyntax])
-> GenericParameterClauseSyntax?
{
guard !associatedtypeDeclList.isEmpty else { return nil }

var genericParameterList = [GenericParameterSyntax]()
Expand Down
3 changes: 2 additions & 1 deletion Sources/SpyableMacro/Factories/SpyFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ struct SpyFactory {
let assosciatedtypeDeclarations = protocolDeclaration.memberBlock.members.compactMap {
$0.decl.as(AssociatedTypeDeclSyntax.self)
}
let genericParameterClause = associatedtypeFactory.constructGenericParameterClause(associatedtypeDeclList: assosciatedtypeDeclarations)
let genericParameterClause = associatedtypeFactory.constructGenericParameterClause(
associatedtypeDeclList: assosciatedtypeDeclarations)

let variableDeclarations = protocolDeclaration.memberBlock.members
.compactMap { $0.decl.as(VariableDeclSyntax.self) }
Expand Down

0 comments on commit 6e05626

Please sign in to comment.