Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove invalid guard
  • Loading branch information
lukaszsamson committed Feb 13, 2020
commit 87a682d4a6aeb606227c6854d85c043b7b05bed7
4 changes: 2 additions & 2 deletions lib/sendgrid.ex
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule SendGrid do
"""
@spec post(path :: String.t(), body :: Tesla.Env.body(), options :: options()) ::
{:ok, Response.t()} | {:error, any()}
def post(path, body, opts \\ []) when is_map(body) and is_list(opts) do
def post(path, body, opts \\ []) when is_list(opts) do
opts
|> api_key()
|> build_client()
Expand All @@ -82,7 +82,7 @@ defmodule SendGrid do
"""
@spec patch(path :: String.t(), body :: Tesla.Env.body(), options :: options()) ::
{:ok, Response.t()} | {:error, any()}
def patch(path, body, opts \\ []) when is_map(body) and is_list(opts) do
def patch(path, body, opts \\ []) when is_list(opts) do
opts
|> api_key()
|> build_client()
Expand Down