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

Fix golangci nits #68

Merged
merged 7 commits into from
Sep 14, 2018
Merged

Fix golangci nits #68

merged 7 commits into from
Sep 14, 2018

Conversation

cpu
Copy link
Contributor

@cpu cpu commented Sep 13, 2018

This PR addresses the low hanging nits flagged by GolangCI.

It leaves three "megacheck" findings yet to be addressed in the cttestsrv:

  • signedLogRoot.TreeSize is deprecated: TreeSize moved to LogRoot.
  • signedLogRoot.TimestampNanos is deprecated: TimestampNanos moved to LogRoot.
  • signedLogRoot.RootHash is deprecated: RootHash moved to LogRoot.

All of the above are a result of google/trillian@0c12c84 - it looks like the certificate-transparency-go ctfe is still using the deprecated fields so I think we can ignore these for now. I think fixing it will require unserializing the log_root []byte from the response and that's too fiddly for my low-hanging PR.

@cpu cpu self-assigned this Sep 13, 2018
@cpu
Copy link
Contributor Author

cpu commented Sep 13, 2018

Filed #69 to address the deprecated fields when someone has time.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 363

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.06%) to 67.193%

Totals Coverage Status
Change from base Build 361: -0.06%
Covered Lines: 766
Relevant Lines: 1140

💛 - Coveralls

@jsha jsha merged commit 85a085a into master Sep 14, 2018
@jsha jsha deleted the cpu-fix-golangci-nits branch September 14, 2018 18:10
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