Skip to content

Commit 4639fb8

Browse files
committed
Clean up formatting
1 parent 95b0e2c commit 4639fb8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: Sources/JavaScriptKit/BasicObjects/JSPromise.swift

+4-3
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ public final class JSPromise: JSBridgedClass {
8787
/** Schedules the `success` closure to be invoked on sucessful completion of `self`.
8888
*/
8989
@discardableResult
90-
public func then(success: @escaping (JSValue) -> ConvertibleToJSValue,
91-
failure: @escaping (JSValue) -> ConvertibleToJSValue) -> JSPromise
92-
{
90+
public func then(
91+
success: @escaping (JSValue) -> ConvertibleToJSValue,
92+
failure: @escaping (JSValue) -> ConvertibleToJSValue
93+
) -> JSPromise {
9394
let successClosure = JSOneshotClosure {
9495
success($0[0]).jsValue
9596
}

0 commit comments

Comments
 (0)