Skip to content

Commit 05b17af

Browse files
committed
Use :gen.reply/2 to leverage aliases
1 parent 8d4b991 commit 05b17af

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/elixir/lib/gen_server.ex

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,11 +1174,8 @@ defmodule GenServer do
11741174
11751175
"""
11761176
@spec reply(from, term) :: :ok
1177-
def reply(client, reply)
1178-
1179-
def reply({to, tag}, reply) when is_pid(to) do
1180-
send(to, {tag, reply})
1181-
:ok
1177+
def reply(client, reply) do
1178+
:gen.reply(client, reply)
11821179
end
11831180

11841181
@doc """

0 commit comments

Comments
 (0)