Skip to content

Commit

Permalink
Fix Scala 3 error
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvim committed Apr 5, 2024
1 parent f081afe commit d183dbb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ trait TaskHandlers {
// It can fail on a 200 by returning a response containing node_failures
if (entity.content.contains("node_failures")) Right[ElasticError, Boolean](false)
else {
Try(ResponseHandler.fromEntity[ListTaskResponse](entity)).map { list: ListTaskResponse =>
Try(ResponseHandler.fromEntity[ListTaskResponse](entity)).map { (list: ListTaskResponse) =>
// Check that all the tasks on all the nodes are cancelled
list.nodes.forall { case (_, node: Node) =>
node.tasks.forall { case (_, task: Task) =>
Expand Down

0 comments on commit d183dbb

Please sign in to comment.