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 golangci-lint to CI #67

Merged
merged 9 commits into from
Nov 12, 2020
Merged

Add golangci-lint to CI #67

merged 9 commits into from
Nov 12, 2020

Conversation

ChihChengLiang
Copy link
Collaborator

Fix #65

@ChihChengLiang ChihChengLiang changed the title Add go vet to CI Add golangci-lint to CI Nov 11, 2020
@@ -326,7 +335,6 @@ func ProcessTxs(db DB, bz Bazooka, txs []Tx, isSyncing bool) (commitments []Comm
commitment := Commitment{Txs: txInCommitment, UpdatedRoot: newRoot, BatchType: tx.Type, AggregatedSignature: aggregatedSig.ToBytes()}
commitments = append(commitments, commitment)
}
currentRoot = newRoot
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This line is an ineffectual assignment, but you might want to take a closer look to check if something is missing.

Copy link
Contributor

Choose a reason for hiding this comment

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

This is true, thanks!

Comment on lines +69 to 70
//nolint:govet // will fix later in #76
return *syncerService
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Don't think I can fix this in the short run, created #76 for this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, I know the issue, I should just move the wait group outside the struct.

@ChihChengLiang ChihChengLiang marked this pull request as ready for review November 11, 2020 08:00
Copy link
Contributor

@vaibhavchellani vaibhavchellani left a comment

Choose a reason for hiding this comment

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

looks good

@ChihChengLiang ChihChengLiang merged commit 5a1d921 into master Nov 12, 2020
@ChihChengLiang ChihChengLiang deleted the add-go-vet branch November 12, 2020 08:59
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.

Add vet to CI
2 participants