From 85fdbc7390b7c081267a39f13b1a3037e9377806 Mon Sep 17 00:00:00 2001 From: MahdiBM Date: Wed, 10 Jul 2024 12:09:25 +0330 Subject: [PATCH] Update EnumeratorMacroType.swift --- Sources/EnumeratorMacro/EnumeratorMacroType.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Sources/EnumeratorMacro/EnumeratorMacroType.swift b/Sources/EnumeratorMacro/EnumeratorMacroType.swift index d4ece9e..a997388 100644 --- a/Sources/EnumeratorMacro/EnumeratorMacroType.swift +++ b/Sources/EnumeratorMacro/EnumeratorMacroType.swift @@ -27,10 +27,7 @@ extension EnumeratorMacroType: MemberMacro { } let rendered = try arguments.as(LabeledExprListSyntax.self)!.compactMap { $0.expression - }.compactMap { expression in - expression.as(StringLiteralExprSyntax.self) - }.map { stringLiteralExpr in - stringLiteralExpr + .as(StringLiteralExprSyntax.self)? .segments .formatted() .description