File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public struct FlagGroupMacro {
9393 }
9494
9595 func makeWigwagDeclaration( ) throws -> VariableDeclSyntax {
96- return try VariableDeclSyntax ( " var $ \( raw: propertyName) : FlagGroupWigwag< \( type) > " ) {
96+ try VariableDeclSyntax ( " var $ \( raw: propertyName) : FlagGroupWigwag< \( type) > " ) {
9797 """
9898 FlagGroupWigwag(
9999 keyPath: \( key) ,
@@ -136,8 +136,8 @@ extension FlagGroupMacro: PeerMacro {
136136 ) throws -> [ DeclSyntax ] {
137137 do {
138138 let macro = try FlagGroupMacro ( node: node, declaration: declaration, context: context)
139- return [
140- try DeclSyntax ( macro. makeWigwagDeclaration ( ) ) ,
139+ return try [
140+ DeclSyntax ( macro. makeWigwagDeclaration ( ) ) ,
141141 ]
142142 } catch {
143143 return [ ]
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public struct FlagMacro {
103103 }
104104
105105 func makeWigwagDeclaration( ) throws -> VariableDeclSyntax {
106- return try VariableDeclSyntax ( " var $ \( raw: propertyName) : FlagWigwag< \( type) > " ) {
106+ try VariableDeclSyntax ( " var $ \( raw: propertyName) : FlagWigwag< \( type) > " ) {
107107 """
108108 FlagWigwag(
109109 keyPath: \( key) ,
@@ -171,8 +171,8 @@ extension FlagMacro: PeerMacro {
171171 ) throws -> [ DeclSyntax ] {
172172 do {
173173 let macro = try FlagMacro ( node: node, declaration: declaration, context: context)
174- return [
175- try DeclSyntax ( macro. makeWigwagDeclaration ( ) ) ,
174+ return try [
175+ DeclSyntax ( macro. makeWigwagDeclaration ( ) ) ,
176176 ]
177177 } catch {
178178 return [ ]
You can’t perform that action at this time.
0 commit comments