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

travis: add gosimple linter #897

Merged
merged 1 commit into from
Nov 21, 2017
Merged

travis: add gosimple linter #897

merged 1 commit into from
Nov 21, 2017

Conversation

dajohi
Copy link
Member

@dajohi dajohi commented Oct 12, 2017

No description provided.

if !cmp {
t.Fatalf("expected %v, got %v", true, cmp)
if !bytes.Equal(vector.bIn[:], b2[:]) {
t.Fatalf("expected %v, got %v", vector.bIn[:], b2)
Copy link
Member

@davecgh davecgh Oct 12, 2017

Choose a reason for hiding this comment

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

I would suggest using %x instead of %v since they are byte slices. The display is much more useful in hex.

Copy link
Member Author

Choose a reason for hiding this comment

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

changes made

if !cmp {
t.Fatalf("expected %v, got %v", true, cmp)
if !bytes.Equal(vector.bIn[:], b3[:]) {
t.Fatalf("expected %v, got %v", vector.bIn[:],
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

Copy link
Member Author

Choose a reason for hiding this comment

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

changes made

@davecgh davecgh merged commit 20686cd into decred:master Nov 21, 2017
@dajohi dajohi deleted the gosimple branch February 28, 2019 00:54
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