Skip to content

Commit b2ca1f1

Browse files
committed
Remove nil response check
#127
1 parent 6fd7e0f commit b2ca1f1

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Sources/WebView/YouTubePlayerWebView+Evaluate.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ extension YouTubePlayerWebView {
7878
Result: \(String(describing: javaScriptResponse ?? "nil"), privacy: .public)
7979
"""
8080
)
81-
// Check if JavaScript response is nil and the generic Response type is an optional type
82-
if javaScriptResponse == nil,
83-
let responseNilValue = (Response.self as? ExpressibleByNilLiteral.Type)?.init(nilLiteral: ()) as? Response {
84-
// Return nil
85-
return responseNilValue
86-
}
8781
do {
8882
// Return converted response
8983
return try converter(

0 commit comments

Comments
 (0)