From 1b0c4b535d729f76ca6177f0ff1101ddfb0c8eaf Mon Sep 17 00:00:00 2001 From: mbrandonw Date: Wed, 15 Nov 2023 18:27:56 +0000 Subject: [PATCH] Run swift-format --- Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift b/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift index 4deb2416..6c4c401c 100644 --- a/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift +++ b/Sources/DependenciesMacrosPlugin/DependencyEndpointMacro.swift @@ -15,7 +15,8 @@ public enum DependencyEndpointMacro: AccessorMacro, PeerMacro { guard let property = declaration.as(VariableDeclSyntax.self), let binding = property.bindings.first, - let identifier = binding.pattern.as(IdentifierPatternSyntax.self)?.identifier.trimmedDescription.trimmedBackticks, + let identifier = binding.pattern.as(IdentifierPatternSyntax.self)?.identifier + .trimmedDescription.trimmedBackticks, property.isClosure else { return []