Update MyCookieManager.swift

Updated force unwrap
This commit is contained in:
Max Zimmermann 2023-05-31 10:15:04 +02:00 committed by GitHub
parent 840c71b2ef
commit ab98855c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -133,16 +133,11 @@ public class MyCookieManager: ChannelDelegate {
if let cookie = HTTPCookie(properties: properties) { if let cookie = HTTPCookie(properties: properties) {
httpCookieStore.setCookie(cookie, completionHandler: {() in
result(true)
})
}
let cookie = HTTPCookie(properties: properties)!
MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in
result(true) result(true)
}) })
} }
}
public static func getCookies(url: String, result: @escaping FlutterResult) { public static func getCookies(url: String, result: @escaping FlutterResult) {
var cookieList: [[String: Any?]] = [] var cookieList: [[String: Any?]] = []