Skip to content

Commit 18e68e6

Browse files
author
Clément Le Provost
committed
Merge branch 'fix/multiple-query-handler'
2 parents 7781223 + 894eefb commit 18e68e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ import Foundation
240240
/// - parameter completionHandler: Completion handler to be notified of the request's outcome.
241241
/// - returns: A cancellable operation.
242242
///
243-
@objc public func multipleQueries(queries: [IndexQuery], strategy: String?, completionHandler: CompletionHandler? = nil) -> NSOperation {
243+
@objc public func multipleQueries(queries: [IndexQuery], strategy: String?, completionHandler: CompletionHandler) -> NSOperation {
244244
// IMPLEMENTATION NOTE: Objective-C bridgeable alternative.
245245
let path = "1/indexes/*/queries"
246246
var requests = [[String: AnyObject]]()
@@ -266,7 +266,7 @@ import Foundation
266266
/// - parameter completionHandler: Completion handler to be notified of the request's outcome.
267267
/// - returns: A cancellable operation.
268268
///
269-
public func multipleQueries(queries: [IndexQuery], strategy: MultipleQueriesStrategy? = nil, completionHandler: CompletionHandler? = nil) -> NSOperation {
269+
public func multipleQueries(queries: [IndexQuery], strategy: MultipleQueriesStrategy? = nil, completionHandler: CompletionHandler) -> NSOperation {
270270
// IMPLEMENTATION NOTE: Not Objective-C bridgeable because of enum.
271271
return multipleQueries(queries, strategy: strategy?.rawValue, completionHandler: completionHandler)
272272
}

0 commit comments

Comments
 (0)