Skip to content

Commit

Permalink
Delete env, instead of setting to nil (#867)
Browse files Browse the repository at this point in the history
Fixes #866
  • Loading branch information
maciej-szlosarczyk authored Apr 17, 2023
1 parent 7df8671 commit ee8fe8f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/elixir_ls_utils/lib/launch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ defmodule ElixirLS.Utils.Launch do
# reset env and target if it is set
Mix.env(:dev)
Mix.target(:host)
System.put_env([{"MIX_ENV", nil}, {"MIX_TARGET", nil}])

for env <- ["MIX_ENV", "MIX_TARGET"] do
System.delete_env(env)
end

load_dot_config()

Expand Down

0 comments on commit ee8fe8f

Please sign in to comment.