Skip to content

Commit 3044b3a

Browse files
committed
Fix formatting
1 parent 0e84003 commit 3044b3a

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Plugins/BridgeJS/Sources/BridgeJSCore/ImportTS.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,9 @@ public struct ImportTS {
298298
body = CodeFragmentPrinter()
299299

300300
if originalReturnType == .void {
301-
body.write("_ = try await _bjs_awaitPromise(makeClosure: { JSTypedClosure($0) }) { resolveRef, rejectRef in")
301+
body.write(
302+
"_ = try await _bjs_awaitPromise(makeClosure: { JSTypedClosure($0) }) { resolveRef, rejectRef in"
303+
)
302304
} else {
303305
body.write(
304306
"let resolved = try await _bjs_awaitPromise(makeClosure: { JSTypedClosure($0) }) { resolveRef, rejectRef in"

Plugins/BridgeJS/Sources/BridgeJSLink/BridgeJSLink.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3419,7 +3419,10 @@ extension BridgeJSLink {
34193419
thunkBuilder.callAsyncMethod(name: method.jsName ?? method.name)
34203420
funcLines = thunkBuilder.renderAsyncFunction(name: method.abiName(context: context))
34213421
} else {
3422-
let returnExpr = try thunkBuilder.callMethod(name: method.jsName ?? method.name, returnType: method.returnType)
3422+
let returnExpr = try thunkBuilder.callMethod(
3423+
name: method.jsName ?? method.name,
3424+
returnType: method.returnType
3425+
)
34233426
funcLines = thunkBuilder.renderFunction(
34243427
name: method.abiName(context: context),
34253428
returnExpr: returnExpr,

0 commit comments

Comments
 (0)