Skip to content

Commit

Permalink
Fix dialyzer error
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanvliet committed Jun 8, 2019
1 parent b584a13 commit 2a89996
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/stripe/core_resources/tax_id.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,12 @@ defmodule Stripe.TaxID do
@spec list(params, Stripe.options()) :: {:ok, Stripe.List.t(t)} | {:error, Stripe.Error.t()}
when params:
%{
optional(:customer) => Stripe.id() | Stripe.Customer.t(),
:customer => Stripe.id() | Stripe.Customer.t(),
optional(:ending_before) => t | Stripe.id(),
optional(:limit) => 1..100,
optional(:starting_after) => t | Stripe.id()
}
| %{}
def list(params \\ %{}, opts \\ []) do
def list(params %{}, opts \\ []) do
updated_params =
params
|> Map.delete(:customer)
Expand Down

0 comments on commit 2a89996

Please sign in to comment.