Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Jan 27, 2025
1 parent b5cb6a7 commit aa5f2de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/req/request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -848,9 +848,10 @@ defmodule Req.Request do
def merge_options(%Req.Request{} = request, options) when is_list(options) do
# TODO: remove on v0.5
deprecated = [:method, :url, :headers, :body, :adapter]
keys = deprecated -- Keyword.keys(options)

options =
case deprecated -- (deprecated -- Keyword.keys(options)) do
case deprecated -- keys do
[] ->
options

Expand Down

0 comments on commit aa5f2de

Please sign in to comment.