Skip to content

Commit 26b69e3

Browse files
committed
nits
1 parent a25261b commit 26b69e3

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

ParseSwift.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,10 +1644,10 @@
16441644
91F346C2269B88F7005727B6 /* ParseCloudViewModelTests.swift */,
16451645
705025982842FD3B008D6624 /* ParseCLPTests.swift */,
16461646
917BA4312703E36800F8D747 /* ParseConfigAsyncTests.swift */,
1647+
7030E09429BBC5740021970D /* ParseConfigCodableCombineTests.swift */,
1648+
7030E08229BBAF250021970D /* ParseConfigCodableTests.swift */,
16471649
7044C21F25C5E0160011F6E7 /* ParseConfigCombineTests.swift */,
16481650
70D1BE0625BB2BF400A42E7C /* ParseConfigTests.swift */,
1649-
7030E08229BBAF250021970D /* ParseConfigCodableTests.swift */,
1650-
7030E09429BBC5740021970D /* ParseConfigCodableCombineTests.swift */,
16511651
91B40650267A66ED00B129CD /* ParseErrorTests.swift */,
16521652
89899DB426045DC4002E2043 /* ParseFacebookCombineTests.swift */,
16531653
89899CF32603CE9D002E2043 /* ParseFacebookTests.swift */,

Sources/ParseSwift/Types/ParseACL.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ extension ParseACL {
413413
try? await KeychainStore.shared.delete(valueFor: ParseStorage.Keys.defaultACL)
414414
#endif
415415
}
416+
416417
}
417418

418419
// Encoding and decoding

Sources/ParseSwift/Types/ParseConfigCodable+async.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ public extension ParseConfigCodable {
4444
completion: continuation.resume)
4545
}
4646
}
47+
4748
}

Sources/ParseSwift/Types/ParseConfigCodable+combine.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public extension ParseConfigCodable {
2222
desires a different policy, it should be inserted in `options`.
2323
*/
2424
static func fetchPublisher(options: API.Options = []) -> Future<[String: V], ParseError> {
25-
2625
Future { promise in
2726
Self.fetch(options: options,
2827
completion: promise)
@@ -37,7 +36,6 @@ public extension ParseConfigCodable {
3736
*/
3837
static func savePublisher(_ config: [String: V],
3938
options: API.Options = []) -> Future<Bool, ParseError> {
40-
4139
Future { promise in
4240
Self.save(config,
4341
options: options,

Sources/ParseSwift/Types/ParseConfigCodable.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)