Skip to content

Commit 0ebe7e8

Browse files
committed
Make request task resume call safek
1 parent f18b42b commit 0ebe7e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/AlgoliaSearch-Client/Request.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ internal class Request: AsyncOperationWithCompletion {
194194
self.callCompletion(content: nil, error: finalError)
195195
}
196196
}
197-
task!.resume()
197+
task?.resume()
198198
}
199199

200200
// ----------------------------------------------------------------------

0 commit comments

Comments
 (0)