Skip to content

Commit b16ed8d

Browse files
committed
Explicit return
1 parent 9c519ae commit b16ed8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/ECMASwift/API/Headers/Headers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ struct HeadersAPI {
4343
func registerAPIInto(context: JSContext) {
4444
let headersClass: @convention(block) (JSValue?) -> Headers = { headers in
4545
if let headers, headers.hasValue {
46-
Headers(withHeaders: headers.toDictionary() as! [String: String])
46+
return Headers(withHeaders: headers.toDictionary() as! [String: String])
4747
} else {
48-
Headers()
48+
return Headers()
4949
}
5050
}
5151
context.setObject(

0 commit comments

Comments
 (0)