Skip to content

Commit 69c58dd

Browse files
committed
added explicit returns for 5.8 compatibility
1 parent 7f2f7c6 commit 69c58dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ public final class JSTimer {
1717

1818
var jsValue: JSValue {
1919
switch self {
20-
case .oneshot(let closure):
21-
closure.jsValue
22-
case .repeating(let closure):
23-
closure.jsValue
20+
case .oneshot(let closure): return closure.jsValue
21+
case .repeating(let closure): return closure.jsValue
2422
}
2523
}
2624

0 commit comments

Comments
 (0)