Skip to content

Commit 65f88bb

Browse files
committed
UpdateCheckService: Move unofficial build check inside update JSON response handling
1 parent 0d80799 commit 65f88bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/iOS/App/Common/Services/UpdateCheckService.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ class UpdateCheckService : UIResponder, UIApplicationDelegate {
2828
return true
2929
}
3030

31-
if (versionManager.buildSource != .official) {
32-
return true
33-
}
34-
3531
let session = URLSession(configuration: URLSessionConfiguration.ephemeral)
3632
let updateUrl = URL(string: "https://dolphinios.oatmealdome.me/api/v2/update.json")!
3733

3834
session.dataTask(with: updateUrl) { (data, response, error) in
35+
if (versionManager.buildSource != .official) {
36+
return
37+
}
38+
3939
guard let unwrappedData = data else {
4040
return
4141
}

0 commit comments

Comments
 (0)