Skip to content

Commit

Permalink
Fixed dialyzer warnings by fixing bug.
Browse files Browse the repository at this point in the history
The argument order to Stripe.Request.update had the params in a
different order.
  • Loading branch information
asummers committed Feb 9, 2017
1 parent f2d88da commit 5c665f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stripe/invoice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ defmodule Stripe.Invoice do
Takes the `id` and a map of changes.
"""
@spec update(t, map, list) :: {:ok, t} | {:error, Stripe.api_error_struct}
@spec update(binary, map, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
def update(id, changes, opts \\ []) do
endpoint = @plural_endpoint <> "/" <> id
Stripe.Request.update(endpoint, changes, @schema, __MODULE__, @nullable_keys, opts)
Stripe.Request.update(endpoint, changes, @schema, @nullable_keys, __MODULE__, opts)
end
end

0 comments on commit 5c665f6

Please sign in to comment.