SourcesViewController: Fix 1 trusted source causing an error making all trusted sources fail to load

This commit is contained in:
naturecodevoid
2023-02-18 20:26:32 -08:00
parent df1a662acc
commit 0d3cb843ea

View File

@@ -381,17 +381,16 @@ private extension SourcesViewController
dispatchGroup.notify(queue: .main) { dispatchGroup.notify(queue: .main) {
if let error = fetchError if let error = fetchError
{ {
finish(.failure(error)) print(error)
// 1 error doesn't mean all trusted sources failed to load! Riley, why did you do this???????
// finish(.failure(error))
} }
else
{
let sources = featuredSourceURLs.compactMap { sourcesByURL[$0] } let sources = featuredSourceURLs.compactMap { sourcesByURL[$0] }
finish(.success(sources)) finish(.success(sources))
} }
} }
} }
} }
}
@IBAction func addTrustedSource(_ sender: PillButton) @IBAction func addTrustedSource(_ sender: PillButton)
{ {