Skip to content

Commit b99295d

Browse files
Merge pull request #631 from algolia/fix/request-task-crash
Fix task.resume() call crash
2 parents f18b42b + 0ebe7e8 commit b99295d

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)