From ab98855c8a842cc24a3730ec1f6c1c708dde1f26 Mon Sep 17 00:00:00 2001 From: Max Zimmermann <72440045+maxmitz@users.noreply.github.com> Date: Wed, 31 May 2023 10:15:04 +0200 Subject: [PATCH] Update MyCookieManager.swift Updated force unwrap --- ios/Classes/MyCookieManager.swift | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ios/Classes/MyCookieManager.swift b/ios/Classes/MyCookieManager.swift index 292c1038..5e5b1e8b 100755 --- a/ios/Classes/MyCookieManager.swift +++ b/ios/Classes/MyCookieManager.swift @@ -133,15 +133,10 @@ public class MyCookieManager: ChannelDelegate { if let cookie = HTTPCookie(properties: properties) { - httpCookieStore.setCookie(cookie, completionHandler: {() in - result(true) - }) + MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in + result(true) + }) } - let cookie = HTTPCookie(properties: properties)! - - MyCookieManager.httpCookieStore.setCookie(cookie, completionHandler: {() in - result(true) - }) } public static func getCookies(url: String, result: @escaping FlutterResult) {