Skip to content

Commit

Permalink
fix: remove unnecessary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed May 13, 2024
1 parent 742e90b commit e59901b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/next_ls/runtime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,10 @@ defmodule NextLS.Runtime do
|> String.to_charlist()

bindir = System.get_env("BINDIR")
NextLS.Logger.log(logger, "BINDIR=#{bindir}")
path = System.get_env("PATH")
NextLS.Logger.log(logger, "before PATH=#{path}")
path_minus_bindir = String.replace(path, bindir <> ":", "")
NextLS.Logger.log(logger, "after1 PATH=#{path_minus_bindir}")

path_minus_bindir2 = path_minus_bindir |> String.split(":") |> List.delete(bindir) |> Enum.join(":")
NextLS.Logger.log(logger, "after2 PATH=#{path_minus_bindir2}")

new_path = elixir_bin_path <> ":" <> path_minus_bindir2
NextLS.Logger.log(logger, "after3 PATH=#{new_path}")

with dir when is_list(dir) <- :code.priv_dir(:next_ls) do
exe =
Expand Down

0 comments on commit e59901b

Please sign in to comment.