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

error return value not checked, but errcheck is no found. #127

Closed
mei-rune opened this issue Sep 8, 2017 · 2 comments
Closed

error return value not checked, but errcheck is no found. #127

mei-rune opened this issue Sep 8, 2017 · 2 comments

Comments

@mei-rune
Copy link

mei-rune commented Sep 8, 2017

code as follow:

package main

import "os"

func aa() error {
	out, err := os.Create("aa")
	if err != nil {
		return err
	}

	err = out.Close()
	return nil
}

run errcheck is nothing in then console.

error return value not checked

err = out.Close()
@dmitshur
Copy link
Contributor

dmitshur commented Sep 8, 2017

Looks similar to #125. /cc @dominikh

@dominikh
Copy link
Collaborator

dominikh commented Sep 8, 2017

Yeah, that's a duplicate of #125, which itself is a duplicate of #7 (of sorts)

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

3 participants