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

Simplified code in various places #6176

Merged
merged 1 commit into from
Jul 20, 2019
Merged

Conversation

muesli
Copy link
Contributor

@muesli muesli commented Jul 19, 2019

All these changes should have no side-effects or change behavior:

  • Use bytes.Buffer's String() instead of a conversion
  • Use time.Since and time.Until where fitting
  • Drop unnecessary returns and assignment

All these changes should have no side-effects or change behavior:

- Use bytes.Buffer's String() instead of a conversion
- Use time.Since and time.Until where fitting
- Drop unnecessary returns and assignment
Copy link
Member

@mkeeler mkeeler left a comment

Choose a reason for hiding this comment

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

Just the one minor request but otherwise this all looks good.

agent/agent_endpoint.go Show resolved Hide resolved
lib/telemetry.go Show resolved Hide resolved
@mkeeler mkeeler merged commit 7753b97 into hashicorp:master Jul 20, 2019
@muesli
Copy link
Contributor Author

muesli commented Jul 20, 2019

Thanks for merging!

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