Skip to content

Commit

Permalink
Cleaner start, don't need the dummy arg
Browse files Browse the repository at this point in the history
  • Loading branch information
cvincent committed Nov 26, 2024
1 parent fa656fa commit e5d6bad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ha_notifier/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule HANotifier.Application do

children = [
{HANotifier.Listener, port},
{HANotifier.LibnotifyNotifier, nil}
HANotifier.LibnotifyNotifier
]

# See https://hexdocs.pm/elixir/Supervisor.html
Expand Down
2 changes: 1 addition & 1 deletion lib/ha_notifier/libnotify_notifier.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule HANotifier.LibnotifyNotifier do

use GenServer

def start_link(nil) do
def start_link([]) do
GenServer.start_link(__MODULE__, nil, name: __MODULE__)
end

Expand Down

0 comments on commit e5d6bad

Please sign in to comment.