Skip to content

Commit

Permalink
Fix incorrect logic in condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
miasma13 committed Nov 7, 2023
1 parent 41915d3 commit af7bb15
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

APIRequest.Headers.setUserAgent(DefaultUserAgentManager.duckDuckGoUserAgent)

if isDebugBuild {
if let privacyConfigCustomURL, let url = URL(string: privacyConfigCustomURL) {
Configuration.setURLProvider(CustomConfigurationURLProvider(customPrivacyConfigurationURL: url))
}
if isDebugBuild, let privacyConfigCustomURL, let url = URL(string: privacyConfigCustomURL) {
Configuration.setURLProvider(CustomConfigurationURLProvider(customPrivacyConfigurationURL: url))
} else {
Configuration.setURLProvider(AppConfigurationURLProvider())
}
Expand Down

0 comments on commit af7bb15

Please sign in to comment.