-
Notifications
You must be signed in to change notification settings - Fork 2.2k
use standardjs formatting #364
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
Conversation
|
The PR is much smaller when you consider ?w=0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toString invokes affineX in a way that doesn't annoy standard
|
@jprichardson thoughts? |
|
Seems @coveralls wasn't showing us the coverage loss in using the one-liner if statements. |
27b10ea to
014e2ca
Compare
|
Rebased on master. @kyledrake, @weilu thoughts appreciated. Hoping to merge by Wednesday 25th. |
Thoughts on Standard? Ya, it's great. Assuming you're talking about |
|
@jprichardson no no, I was just annotating why there was an actual code change there. I was just after your thoughts on standard. Happy to discuss any concerns post merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wat? why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standard-format artifact. @maxogden?
On 1 Mar 2015 3:11 pm, "Wei Lu" notifications@github.com wrote:
In src/ecdsa.js
#364 (comment)
:@@ -146,7 +146,7 @@ function verifyRaw(curve, e, signature, Q) {
if (r.signum() <= 0 || r.compareTo(n) >= 0) return false
if (s.signum() <= 0 || s.compareTo(n) >= 0) return false
- // c = s^-1 mod n
// c = s^-1 mod nwat? why?
—
Reply to this email directly or view it on GitHub
https://github.com/bitcoinjs/bitcoinjs-lib/pull/364/files#r25563881.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxogden, another example of this weird comment indentation artifact
|
👍 |
Simple enough PR, use https://github.com/feross/standard for formatting and styling.
The changes were minimal, with manual intervention over
standard --formatneeded mostly around the mocha globals and extra if statement padding.