Skip to content

Commit 941ef89

Browse files
committed
Update code formatting
1 parent a9c987c commit 941ef89

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Sources/MockedMacros/MockedMacro.swift

+4-7
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,17 @@ public struct MockedMacro: PeerMacro {
8383

8484
// Functions
8585

86-
let functions: [Function] = functionBuilder(
87-
protocolDecl: protocolDecl,
88-
members: members
89-
)
86+
let functions: [Function] = functionBuilder(protocolDecl: protocolDecl, members: members)
9087

9188
let functionVariableDefinitions: String = functionVariableDefinitions(functions: functions)
9289
let functionVariableInitDefinitions: String = functionVariableInitDefinitions(functions: functions)
9390
let functionVariableInitAssignments: String = functionVariableInitAssignments(functions: functions)
9491
let functionImplementations: String = functionImplementations(functions: functions, accessLevel: accessLevel)
9592

9693
// Check if the protocol conforms to AnyObject
97-
let requiresClassConformance = protocolDecl.inheritanceClause?.inheritedTypes.contains(where: {
98-
$0.type.description.trimmingCharacters(in: .whitespacesAndNewlines) == "AnyObject"
99-
}) ?? false
94+
let requiresClassConformance = protocolDecl.inheritanceClause?.inheritedTypes.contains(
95+
where: { $0.type.description.trimmingCharacters(in: .whitespacesAndNewlines) == "AnyObject" }
96+
) ?? false
10097

10198
let objectType: String = requiresClassConformance ? "class" : "struct"
10299

0 commit comments

Comments
 (0)