We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b32b5f commit d9925cbCopy full SHA for d9925cb
lib/req.ex
@@ -1148,11 +1148,7 @@ defmodule Req do
1148
1149
# Plugins support is experimental, undocumented, and likely won't make the new release.
1150
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
+ run_plugins(plugin.attach(request), rest)
1156
end
1157
1158
defp run_plugins(request, [plugin | rest]) when is_function(plugin, 1) do
0 commit comments