Skip to content

Commit 594a7ed

Browse files
authored
refactor: remove unused state (#174)
1 parent e77cebd commit 594a7ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/next_ls/runtime/sidecar.ex

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ defmodule NextLS.Runtime.Sidecar do
55
alias NextLS.DB
66

77
def start_link(args) do
8-
GenServer.start_link(__MODULE__, Keyword.take(args, [:symbol_table, :db]), Keyword.take(args, [:name]))
8+
GenServer.start_link(__MODULE__, Keyword.drop(args, [:name]), Keyword.take(args, [:name]))
99
end
1010

1111
def init(args) do
12-
symbol_table = Keyword.fetch!(args, :symbol_table)
1312
db = Keyword.fetch!(args, :db)
1413

15-
{:ok, %{symbol_table: symbol_table, db: db}}
14+
{:ok, %{db: db}}
1615
end
1716

1817
def handle_info({:tracer, payload}, state) do

0 commit comments

Comments
 (0)