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

lib: fix errors found by vet #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

functionary
Copy link

This pull request was made with an automated tool.

The suggested change fixes one or more problems discovered by "go vet".

See https://github.com/functionary/functionary for more details on
the @functionary GitHub user.

Vet found the following errors:
	lib/proxy.go:87: result of fmt.Errorf call not used
	lib/proxy.go:97: result of fmt.Errorf call not used
	lib/proxy.go:105: result of fmt.Errorf call not used

These are pointless calls because fmt.Errorf just creates an error
value; it is then discarded without reporting the error to the user.

This commit changes the fmt.Errorf calls to log.Printf calls so
the error is logged.
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