-
Notifications
You must be signed in to change notification settings - Fork 6
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
Changes to code style #34
Conversation
cserb
commented
Feb 1, 2020
- followed ameba linting https://crystal-ameba.github.io/
- followed crystal coding style convention https://crystal-lang.org/reference/conventions/coding_style.html
- removed unreachable code
|
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.
LGTM if you could remove the two obsolete docs
@@ -40,7 +40,7 @@ | |||
<div class="types-list"> | |||
<ul> | |||
|
|||
<li class="parent open" data-id="github.com/q9f/secp256k1.cr/Secp256k1" data-name="secp256k1"> |
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.
can you restore the open
class here?
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.
I don't know how to do that, since this is generated by crystal doc
@@ -451,7 +446,7 @@ module Secp256k1::Bitcoin | |||
pk_checksum = hashed_twice[0, 8] | |||
valid = valid && wif_checksum === pk_checksum | |||
end | |||
return valid | |||
valid |
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.
i personally prefer having return statements to improve readability but I'm not very opinionated about it, so LGTM
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.
I actually concur, but the crystal/ruby community decided to use return only for early break outs
* followed ameba linting https://crystal-ameba.github.io/ * followed crystal coding style convention https://crystal-lang.org/reference/conventions/coding_style.html * removed unreachable code * version bump