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

ProdHealthCheckSimplePR: open file. don't close it. #15229

Closed
wants to merge 1 commit into from

Conversation

CodeLingoBot
Copy link

No description provided.

Copy link

@staging-codelingo staging-codelingo bot left a comment

Choose a reason for hiding this comment

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

1 issues found.

)

func aNewFunc() error {
f, err := os.Open("/tmp/test.txt") //ISSUE

Choose a reason for hiding this comment

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

Add defer f.Close() after opening the file f. . as specified in Effective Go

View Rule

@CodeLingoBot CodeLingoBot deleted the simple_prod_test branch October 27, 2020 21:32
Copy link

@codelingo codelingo bot left a comment

Choose a reason for hiding this comment

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

1 issues found.

)

func aNewFunc() error {
f, err := os.Open("/tmp/test.txt") //ISSUE
Copy link

Choose a reason for hiding this comment

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

Add defer f.Close() after opening the file f. . as specified in Effective Go

View Rule

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