Skip to content

Commit

Permalink
fixup! chore: don't install burrito in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Aug 11, 2023
1 parent fd67e4c commit 71646e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/next_ls/lsp_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ defmodule NextLS.LSPSupervisor do
if @env == :test do
:ignore
else
argv = if @env == :prod, do: Burrito.Util.Args.get_arguments(), else: System.argv()
{m, f, a} = if @env == :prod, do: {Burrito.Util.Args, :get_arguments, []}, else: {System, :argv, []}

argv = apply(m, f, a)

{opts, _, invalid} =
OptionParser.parse(argv, strict: [stdio: :boolean, port: :integer])
Expand Down

0 comments on commit 71646e5

Please sign in to comment.