Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 66e5392

Browse files
committed
Remove 'completion' parameter label
1 parent bda940c commit 66e5392

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

WordPressKit/BloggingPromptsServiceRemote.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ open class BloggingPromptsServiceRemote: ServiceRemoteWordPressComREST {
5959
)
6060
.map { $0.body.values.first ?? [] }
6161
.mapError { error -> Error in error.asNSError() }
62-
.execute(completion: completion)
62+
.execute(completion)
6363
}
6464
}
6565

@@ -74,7 +74,7 @@ open class BloggingPromptsServiceRemote: ServiceRemoteWordPressComREST {
7474
await self.wordPressComRestApi.perform(.get, URLString: path, type: RemoteBloggingPromptsSettings.self)
7575
.map { $0.body }
7676
.mapError { error -> Error in error.asNSError() }
77-
.execute(completion: completion)
77+
.execute(completion)
7878
}
7979
}
8080

WordPressKit/Domains/DomainsServiceRemote+AllDomains.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ extension DomainsServiceRemote {
3434
)
3535
.map { $0.body.domains }
3636
.mapError { error -> Error in error.asNSError() }
37-
.execute(completion: completion)
37+
.execute(completion)
3838
}
3939
}
4040

WordPressKit/JetpackSocialServiceRemote.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class JetpackSocialServiceRemote: ServiceRemoteWordPressComREST {
2626
}
2727
return .failure(original.asNSError())
2828
}
29-
.execute(completion: completion)
29+
.execute(completion)
3030
}
3131
}
3232
}

WordPressKit/Result+Callback.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ extension Swift.Result {
88
}
99
}
1010

11-
func execute(completion: (Self) -> Void) {
11+
func execute(_ completion: (Self) -> Void) {
1212
completion(self)
1313
}
1414

WordPressKit/ShareAppContentServiceRemote.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ open class ShareAppContentServiceRemote: ServiceRemoteWordPressComREST {
2222
)
2323
.map { $0.body }
2424
.mapError { error -> Error in error.asNSError() }
25-
.execute(completion: completion)
25+
.execute(completion)
2626
}
2727
}
2828
}

0 commit comments

Comments
 (0)