Move explicit exit out of display function
This commit is contained in:
@@ -16,7 +16,10 @@ defmodule Mix.Tasks.Meditate do
|
||||
|> Tracker.start
|
||||
|> Runner.run
|
||||
|
||||
if Tracker.complete?, do: Display.congratulate
|
||||
if Tracker.complete? do
|
||||
Display.congratulate
|
||||
exit(:normal)
|
||||
end
|
||||
|
||||
receive do
|
||||
{:DOWN, _references, :process, ^watcher, _reason} -> nil
|
||||
|
||||
Reference in New Issue
Block a user