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

Missing a few cases? #120

Closed
ahmetb opened this issue Dec 22, 2016 · 2 comments
Closed

Missing a few cases? #120

ahmetb opened this issue Dec 22, 2016 · 2 comments

Comments

@ahmetb
Copy link

ahmetb commented Dec 22, 2016

It misses the following cases:

	v, _ := foo() // <------- did not use err here
	a, b, err := bar()
	if err != nil {
		...
	}

or

	v, err := foo() // <------ err is overwritten before used
	a, b, err := bar()
	if err != nil {
		...
	}

Is this by design?

@dominikh
Copy link
Collaborator

The first one is on purpose, and you can use the -blank flag to flag errors assigned to _. The second one is #7

@ahmetb
Copy link
Author

ahmetb commented Dec 22, 2016

Great, thanks @dominikh.

@ahmetb ahmetb closed this as completed Dec 22, 2016
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

No branches or pull requests

2 participants