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

Add more linting #296

Merged
merged 4 commits into from
Nov 12, 2019
Merged

Add more linting #296

merged 4 commits into from
Nov 12, 2019

Conversation

tac0turtle
Copy link
Contributor

  • added more linting

Signed-off-by: Marko Baricevic marbar3778@yahoo.com

- added more linting

Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
@tac0turtle tac0turtle self-assigned this Nov 11, 2019
@tac0turtle tac0turtle marked this pull request as ready for review November 11, 2019 21:01
binary-decode.go Outdated Show resolved Hide resolved
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

@tessr tessr merged commit 01b51bd into master Nov 12, 2019
@tessr tessr deleted the marko/linting branch November 12, 2019 12:16
@@ -331,7 +331,7 @@ func (cdc *Codec) UnmarshalBinaryLengthPrefixedReader(r io.Reader, ptr interface
}
l = int64(u64)
if l < 0 {
_ = errors.Errorf(
_ = errors.Errorf( //nolint:errcheck
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was looking at this as well, with amino being a bit touchy I didn't want to change to much stuff in this PR so I left it

Copy link
Contributor

Choose a reason for hiding this comment

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

Right. But this code does not do anything, so maybe we should comment it completely.

@tac0turtle tac0turtle mentioned this pull request Nov 13, 2019
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.

3 participants