Squash warnings about missing inits

This commit is contained in:
Felipe Sere
2019-01-05 11:12:15 +00:00
parent 5e5d6bcf8b
commit 82b4eb1766
3 changed files with 11 additions and 0 deletions

View File

@@ -8,6 +8,10 @@ defmodule Display do
GenServer.start_link(__MODULE__, %{clear_screen: true}, name: __MODULE__) GenServer.start_link(__MODULE__, %{clear_screen: true}, name: __MODULE__)
end end
def init(args) do
{:ok, args}
end
def disable_clear do def disable_clear do
GenServer.cast(__MODULE__, :disable_clear) GenServer.cast(__MODULE__, :disable_clear)
end end

View File

@@ -8,6 +8,9 @@ defmodule GenServers do
##### #####
# External API # External API
def init(args) do
{:ok, args}
end
def start_link(init_password) do def start_link(init_password) do
# The __MODULE__ macro returns the current module name as an atom # The __MODULE__ macro returns the current module name as an atom

View File

@@ -31,6 +31,10 @@ defmodule Runner do
def modules_to_run(start_module), do: Enum.drop_while(modules(), &(&1 != start_module)) def modules_to_run(start_module), do: Enum.drop_while(modules(), &(&1 != start_module))
def init(args) do
{:ok, args}
end
def start_link do def start_link do
GenServer.start_link(__MODULE__, [], name: __MODULE__) GenServer.start_link(__MODULE__, [], name: __MODULE__)
end end