Skip to content

Commit 476e24f

Browse files
HoloRinmergify[bot]
authored andcommitted
elixir syntax over erlang
(cherry picked from commit 59f5494) (cherry picked from commit 7c73f15)
1 parent 993c953 commit 476e24f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

deps/rabbitmq_cli/lib/rabbit_common/records.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule RabbitCommon.Records do
1010

1111
# Elixir 1.15 compiler optimizations require that we explicitly
1212
# add the rabbit_common code path
13-
true = :code.add_path(:filename.join(:os.getenv(~c"DEPS_DIR"), ~c"rabbit_common/ebin"))
13+
true = Code.append_path(Path.join([System.get_env("DEPS_DIR"), "rabbit_common", "ebin"]))
1414

1515
# Important: amqqueue records must not be used directly since they are versioned
1616
# for mixed version cluster compatibility. Convert records

deps/rabbitmq_cli/lib/rabbitmq/cli/formatters/csv.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ end
9696

9797
# Elixir 1.15 compiler optimizations require that we explicitly
9898
# add the csv code path
99-
true = :code.add_path(:filename.join([~c"_build", Atom.to_charlist(Mix.env()), ~c"lib/csv/ebin"]))
99+
true = Code.append_path(Path.join(["_build", Atom.to_string(Mix.env()), "lib", "csv", "ebin"]))
100100

101101
defimpl CSV.Encode, for: PID do
102102
def encode(pid, env \\ []) do

deps/rabbitmq_cli/lib/rabbitmq/cli/formatters/pretty_table.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule RabbitMQ.CLI.Formatters.PrettyTable do
1414

1515
# Elixir 1.15 compiler optimizations require that we explicitly
1616
# add the stdout_formatter code path
17-
true = :code.add_path(:filename.join(:os.getenv(~c"DEPS_DIR"), ~c"stdout_formatter/ebin"))
17+
true = Code.append_path(Path.join([System.get_env("DEPS_DIR"), "stdout_formatter", "ebin"]))
1818

1919
defrecord :table,
2020
extract(:table,

0 commit comments

Comments
 (0)