Skip to content

Commit 7043c76

Browse files
committed
Formatting
1 parent 92e7929 commit 7043c76

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Sources/VexilMacros/FlagGroupMacro.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 []

Sources/VexilMacros/FlagMacro.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 []

0 commit comments

Comments
 (0)