Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format misc files #318

Merged
merged 1 commit into from Nov 22, 2017
Merged

Format misc files #318

merged 1 commit into from Nov 22, 2017

Conversation

joshsmith
Copy link
Contributor

No description provided.

@@ -10,7 +10,10 @@ defmodule Stripe.ErrorTest do
error = Error.from_stripe_error(400, nil, "id")
assert error.code == :bad_request
assert error.extra.http_status == 400
assert error.message == "The request was unacceptable, often due to missing a required parameter."

assert error.message ==
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe name this something like expected_message, so you don't break in middle.

def handle_info({:DOWN, os_pid, :process, _ex_pid, _reason}, %{os_pid: os_pid, opts: opts, restarting: {true, from}} = state) do
def handle_info(
{:DOWN, os_pid, :process, _ex_pid, _reason},
%{os_pid: os_pid, opts: opts, restarting: {true, from}} = state
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They recommend doing this match as the first line of the function since it's immaterial to the function being invoked.

executable = opts[:stripe_mock_path] || System.find_executable("stripe-mock")

unless executable,
do:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would turn this into a proper block.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 9da36b2 on format-misc into ** on 2.0-beta**.

1 similar comment
@coveralls
Copy link

coveralls commented Nov 22, 2017

Coverage Status

Changes Unknown when pulling 9da36b2 on format-misc into ** on 2.0-beta**.

@coveralls
Copy link

coveralls commented Nov 22, 2017

Coverage Status

Coverage increased (+1.4%) to 75.979% when pulling 46de987 on format-misc into e2e8bf5 on 2.0-beta.

@joshsmith joshsmith merged commit 399db4a into 2.0-beta Nov 22, 2017
@joshsmith joshsmith deleted the format-misc branch November 22, 2017 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants