Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Ineffassign #603

Merged
merged 5 commits into from
Apr 12, 2017
Merged

Ineffassign #603

merged 5 commits into from
Apr 12, 2017

Conversation

Dieterbe
Copy link
Contributor

via https://goreportcard.com/report/github.com/raintank/metrictank#ineffassign these issues came up.
https://github.com/gordonklaus/ineffassign is a neat tool.

the first and 3rd commit are bugfixes that change the logic of the code, the others are just code cleanups without functionally changing anything.

by changing err to local scope, the *next* assignment of err
in this branch was local, and not logged below the if s.SSL branch

metrictank/api/api.go:113:3: ineffectual assignment to err
thx https://github.com/gordonklaus/ineffassign
thx ineffassign
@Dieterbe Dieterbe requested review from woodsaj and replay April 12, 2017 12:15
Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@Dieterbe Dieterbe merged commit d7dc925 into master Apr 12, 2017
@Dieterbe Dieterbe deleted the ineffassign branch September 18, 2018 09:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants