Skip to content

Commit 7c34a60

Browse files
committed
Get rid of double unquote of args
1 parent ede4f77 commit 7c34a60

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/rop.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ defmodule Rop do
108108
defmacro tee(args, func) do
109109
quote do
110110
(fn ->
111-
unquote(args) |> unquote(func)
112-
{:ok, unquote(args)}
111+
unquoted_args = unquote(args)
112+
unquoted_args |> unquote(func)
113+
{:ok, unquoted_args}
113114
end).()
114115
end
115116
end

0 commit comments

Comments
 (0)