Skip to content

Commit 885a4f8

Browse files
committed
Checking unmatched returns
1 parent 7d593a5 commit 885a4f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/elixir_osc/events.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ defmodule ElixirOsc.Events do
22

33
def start_link(), do: start_link([])
44
def start_link(_args) do
5-
:gen_event.start_link({:local, :osc_events})
5+
{:ok, _pid} = :gen_event.start_link({:local, :osc_events})
66
{:ok, []}
77
end
88

lib/elixir_osc/supervisor.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule ElixirOsc.Supervisor do
1515
worker(ElixirOsc.Sender, args),
1616
]
1717

18-
ElixirOsc.Events.start_link
18+
{:ok, _arg} = ElixirOsc.Events.start_link
1919

2020
# See http://elixir-lang.org/docs/stable/Supervisor.Behaviour.html
2121
# for other strategies and supported options

0 commit comments

Comments
 (0)