diff --git a/lib/elixir/lib/task.ex b/lib/elixir/lib/task.ex index 83b8c8677e5..2b61d562491 100644 --- a/lib/elixir/lib/task.ex +++ b/lib/elixir/lib/task.ex @@ -400,9 +400,10 @@ defmodule Task do milliseconds, you should chain this together with `shutdown/1`, like so: case Task.yield(task, timeout) || Task.shutdown(task) do - {:ok, result} -> result + {:ok, result} -> + result nil -> - Logger.warn "Failed to get a result in #{timeout} ms + Logger.warn "Failed to get a result in #{timeout}ms" nil end