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 linters to go-amino #278

Merged
merged 2 commits into from
Aug 2, 2019
Merged

add linters to go-amino #278

merged 2 commits into from
Aug 2, 2019

Conversation

tac0turtle
Copy link
Contributor

@tac0turtle tac0turtle commented Aug 2, 2019

ref #258

@tac0turtle tac0turtle marked this pull request as ready for review August 2, 2019 10:50
@@ -441,7 +441,7 @@ func encodeFieldNumberAndTyp3(w io.Writer, num uint32, typ Typ3) (err error) {
if (typ & 0xF8) != 0 {
panic(fmt.Sprintf("invalid Typ3 byte %v", typ))
}
if num < 0 || num > (1<<29-1) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

uint32 can not be less than 0

@@ -270,7 +271,7 @@ func decodeNanos(bz *[]byte, n *int) (int32, error) {
return 0, err
}
// Validation check.
if nsec < 0 || maxNanos < nsec {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

uint can not be less than 0

json_test.go Outdated Show resolved Hide resolved
reflect_test.go Outdated Show resolved Hide resolved
@tac0turtle tac0turtle merged commit f6880e1 into master Aug 2, 2019
@tac0turtle tac0turtle deleted the marko/add_linters branch August 2, 2019 13:12
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.

2 participants