@@ -32,7 +32,6 @@ extension ParseConfigCodable {
3232 public static func fetch( options: API . Options = [ ] ,
3333 callbackQueue: DispatchQueue = . main,
3434 completion: @escaping ( Result < [ String : V ] , ParseError > ) -> Void ) {
35-
3635 Task {
3736 var options = options
3837 options. insert ( . cachePolicy( . reloadIgnoringLocalCacheData) )
@@ -44,7 +43,6 @@ extension ParseConfigCodable {
4443 }
4544
4645 internal static func fetchCommand( ) async -> API . NonParseBodyCommand < [ String : V ] , [ String : V ] > {
47-
4846 return API . NonParseBodyCommand ( method: . GET,
4947 path: . config) { ( data) -> [ String : V ] in
5048 let fetched = try ParseCoding
@@ -54,6 +52,7 @@ extension ParseConfigCodable {
5452 return fetched
5553 }
5654 }
55+
5756}
5857
5958// MARK: Update
@@ -73,7 +72,6 @@ extension ParseConfigCodable {
7372 options: API . Options = [ ] ,
7473 callbackQueue: DispatchQueue = . main,
7574 completion: @escaping ( Result < Bool , ParseError > ) -> Void ) {
76-
7775 Task {
7876 var options = options
7977 options. insert ( . usePrimaryKey)
@@ -87,7 +85,6 @@ extension ParseConfigCodable {
8785
8886 // swiftlint:disable:next line_length
8987 internal static func updateCommand( _ config: [ String : V ] ) async -> API . NonParseBodyCommand < ConfigCodableUpdateBody < [ String : V ] > , Bool > {
90-
9188 let body = ConfigCodableUpdateBody ( params: config)
9289 return API . NonParseBodyCommand ( method: . PUT, // MARK: Should be switched to ".PATCH" when server supports PATCH.
9390 path: . config,
@@ -100,6 +97,7 @@ extension ParseConfigCodable {
10097 return updated
10198 }
10299 }
100+
103101}
104102
105103// MARK: Current
0 commit comments