Skip to content

Commit

Permalink
run swiftlingt —autocorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Jul 30, 2024
1 parent acb2658 commit 4bbf911
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flutter/ios/Classes/SentryFlutter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public final class SentryFlutter {
let type = proxy["type"] as? String else {
return
}

var connectionProxyDictionary: [String: Any] = [:]
if type.lowercased() == "http" {
connectionProxyDictionary[kCFNetworkProxiesHTTPEnable as String] = true
Expand All @@ -93,15 +93,15 @@ public final class SentryFlutter {
} else {
return
}

if let user = proxy["user"] as? String, let pass = proxy["pass"] {
connectionProxyDictionary[kCFProxyUsernameKey as String] = user
connectionProxyDictionary[kCFProxyPasswordKey as String] = pass
}

let configuration = URLSessionConfiguration.default
configuration.connectionProxyDictionary = connectionProxyDictionary

options.urlSession = URLSession(configuration: configuration)
}
}
Expand Down

0 comments on commit 4bbf911

Please sign in to comment.