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

file_snapshot: do defer after os.Open succeed #519

Merged
merged 1 commit into from
Sep 14, 2022
Merged

Conversation

dbadoy
Copy link
Contributor

@dbadoy dbadoy commented Aug 19, 2022

os.Open always returns nil if an error occurs.
So, it's seems better do defer after os.Open succeed.

@hashicorp-cla
Copy link

hashicorp-cla commented Aug 19, 2022

CLA assistant check
All committers have signed the CLA.

@ncabatoff ncabatoff merged commit 24e68f8 into hashicorp:main Sep 14, 2022
@ncabatoff
Copy link
Contributor

Thanks @dbadoy , nice catch!

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.

3 participants