Skip to content

Commit d9925cb

Browse files
committed
Update lib/req.ex
1 parent 4b32b5f commit d9925cb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/req.ex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,11 +1148,7 @@ defmodule Req do
11481148

11491149
# Plugins support is experimental, undocumented, and likely won't make the new release.
11501150
defp run_plugins(request, [plugin | rest]) when is_atom(plugin) do
1151-
if Code.ensure_loaded?(plugin) and function_exported?(plugin, :attach, 1) do
1152-
run_plugins(plugin.attach(request), rest)
1153-
else
1154-
run_plugins(plugin.run(request), rest)
1155-
end
1151+
run_plugins(plugin.attach(request), rest)
11561152
end
11571153

11581154
defp run_plugins(request, [plugin | rest]) when is_function(plugin, 1) do

0 commit comments

Comments
 (0)