We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 54406a9 + 2f6f8e6 commit 7f2ac8fCopy full SHA for 7f2ac8f
1 file changed
Sources/ForceUpdate/ForceUpdateController.swift
@@ -150,7 +150,6 @@ public actor ForceUpdateController {
150
let result = try appStoreLookupDecoder.decode(AppStoreLookUp.self, from: data)
151
return result.results.first
152
} catch {
153
- assertionFailure("Decoding iTunes Lookup response failed")
154
return nil
155
}
156
@@ -168,11 +167,6 @@ public actor ForceUpdateController {
168
167
169
170
171
- do {
172
- return try publicVersionLookupDecoder.decode(ProjectVersion.self, from: data)
173
- } catch {
174
- assertionFailure("Decoding project JSON failed")
175
- return nil
176
- }
+ return try? publicVersionLookupDecoder.decode(ProjectVersion.self, from: data)
177
178
0 commit comments