Skip to content

Commit e53cd5c

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent c078249 commit e53cd5c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ let package = Package(
9090
name: "StructuredQueriesSQLiteCore",
9191
dependencies: [
9292
"StructuredQueriesCore",
93-
.product(name: "IssueReporting", package: "xctest-dynamic-overlay")
93+
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
9494
]
9595
),
9696
.macro(

[email protected]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ let package = Package(
8181
name: "StructuredQueriesSQLiteCore",
8282
dependencies: [
8383
"StructuredQueriesCore",
84-
.product(name: "IssueReporting", package: "xctest-dynamic-overlay")
84+
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
8585
]
8686
),
8787
.macro(

Sources/StructuredQueriesSQLiteMacros/DatabaseFunctionMacro.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import SwiftBasicFormat
22
import SwiftDiagnostics
3+
internal import SwiftParser
34
import SwiftSyntax
45
import SwiftSyntaxBuilder
56
import SwiftSyntaxMacros
6-
internal import SwiftParser
77

88
public enum DatabaseFunctionMacro {}
99

@@ -149,12 +149,12 @@ extension DatabaseFunctionMacro: PeerMacro {
149149
"""
150150
if declaration.signature.effectSpecifiers?.throwsClause != nil {
151151
invocationBody = """
152-
do {
153-
return try \(invocationBody)
154-
} catch {
155-
return .invalid(error)
156-
}
157-
"""
152+
do {
153+
return try \(invocationBody)
154+
} catch {
155+
return .invalid(error)
156+
}
157+
"""
158158
} else {
159159
invocationBody = "return \(invocationBody)"
160160
}

Sources/StructuredQueriesSQLiteMacros/Plugin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import SwiftSyntaxMacros
44
@main
55
struct StructuredQueriesPlugin: CompilerPlugin {
66
let providingMacros: [Macro.Type] = [
7-
DatabaseFunctionMacro.self,
7+
DatabaseFunctionMacro.self
88
]
99
}

0 commit comments

Comments
 (0)