Skip to content

Commit ff7663c

Browse files
authored
Update tesla.ex (#649)
warning: using map.field notation (without parentheses) to invoke function Tesla.__middleware__() is deprecated, you must add parentheses instead: remote.function()
1 parent 03b42a8 commit ff7663c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tesla.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ defmodule Tesla do
115115

116116
defp prepare(module, %{pre: pre, post: post} = client, options) do
117117
env = struct(Env, options ++ [__module__: module, __client__: client])
118-
stack = pre ++ module.__middleware__ ++ post ++ [effective_adapter(module, client)]
118+
stack = pre ++ module.__middleware__() ++ post ++ [effective_adapter(module, client)]
119119
{env, stack}
120120
end
121121

0 commit comments

Comments
 (0)