Squash warnings about missing inits
This commit is contained in:
@@ -8,6 +8,10 @@ defmodule Display do
|
||||
GenServer.start_link(__MODULE__, %{clear_screen: true}, name: __MODULE__)
|
||||
end
|
||||
|
||||
def init(args) do
|
||||
{:ok, args}
|
||||
end
|
||||
|
||||
def disable_clear do
|
||||
GenServer.cast(__MODULE__, :disable_clear)
|
||||
end
|
||||
|
||||
@@ -8,6 +8,9 @@ defmodule GenServers do
|
||||
|
||||
#####
|
||||
# External API
|
||||
def init(args) do
|
||||
{:ok, args}
|
||||
end
|
||||
|
||||
def start_link(init_password) do
|
||||
# The __MODULE__ macro returns the current module name as an atom
|
||||
|
||||
@@ -31,6 +31,10 @@ defmodule Runner do
|
||||
|
||||
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
|
||||
GenServer.start_link(__MODULE__, [], name: __MODULE__)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user