File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -265,24 +265,13 @@ extension ParseSchema {
265
265
var options = options
266
266
options. insert ( . useMasterKey)
267
267
options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
268
- do {
269
- try fetchCommand ( )
270
- . executeAsync ( options: options,
271
- callbackQueue: callbackQueue,
272
- completion: completion)
273
- } catch {
274
- callbackQueue. async {
275
- if let error = error as? ParseError {
276
- completion ( . failure( error) )
277
- } else {
278
- completion ( . failure( ParseError ( code: . unknownError,
279
- message: error. localizedDescription) ) )
280
- }
281
- }
282
- }
268
+ fetchCommand ( )
269
+ . executeAsync ( options: options,
270
+ callbackQueue: callbackQueue,
271
+ completion: completion)
283
272
}
284
273
285
- func fetchCommand( ) throws -> API . Command < Self , Self > {
274
+ func fetchCommand( ) -> API . Command < Self , Self > {
286
275
287
276
return API . Command ( method: . GET,
288
277
path: endpoint) { ( data) -> Self in
You can’t perform that action at this time.
0 commit comments