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

go-vet friendly code #203

Merged
merged 2 commits into from
Oct 25, 2014
Merged

go-vet friendly code #203

merged 2 commits into from
Oct 25, 2014

Conversation

jbenet
Copy link
Member

@jbenet jbenet commented Oct 25, 2014

I went through and made our codebase go-vet friendly.This included forking go-logging, until op/go-logging#30 is merged.

Main things found:

  • distinguish log.Error and log.Errorf functions
  • Initialize structs with field names
  • A bit of unreachable code (defers)

cc @whyrusleeping @maybebtc @cryptix

@jbenet jbenet added the status/in-progress In progress label Oct 25, 2014
- distinguish log.Error and log.Errorf functions
- Initialize structs with field names
- A bit of unreachable code (defers)
jbenet added a commit that referenced this pull request Oct 25, 2014
@jbenet jbenet merged commit 2ce4187 into master Oct 25, 2014
@jbenet jbenet removed the status/in-progress In progress label Oct 25, 2014
@jbenet jbenet deleted the govet branch October 25, 2014 10:58
@aschmahmann aschmahmann mentioned this pull request Aug 23, 2021
62 tasks
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.

1 participant