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

ensure close file before rename bookmark file. #840

Closed
wants to merge 2 commits into from

Conversation

mei-rune
Copy link
Contributor

must close file before rename bookmark file on some os( win32 )

if err := self.write(newFile); err != nil {
newFile.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

How is this different from using defer which was removed two lines above this line ?

@mei-rune
Copy link
Contributor Author

oooo, this is my old code. I close this pull request, recreate pull request #849.

@mei-rune mei-rune closed this Aug 19, 2014
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.

2 participants