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

Use standard precondition checks #2

Merged
merged 3 commits into from
Feb 10, 2015
Merged

Conversation

maraoz
Copy link
Contributor

@maraoz maraoz commented Feb 5, 2015

No description provided.

throw new TypeError('First argument should be an instance of PrivateKey');
}
$.checkArgument(privateKey instanceof PrivateKey,
new TypeError('First argument should be an instance of PrivateKey'));
Copy link
Contributor

Choose a reason for hiding this comment

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

checkArgument creates a new error, so this would create two errors where there could be one. No?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will fix

@maraoz
Copy link
Contributor Author

maraoz commented Feb 5, 2015

updated

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 549a6c2 on maraoz:standardize into 0f882ec on bitpay:master.

eordano added a commit that referenced this pull request Feb 10, 2015
Use standard precondition checks
@eordano eordano merged commit 3347622 into bitpay:master Feb 10, 2015
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

4 participants