fix flush of a closed file handle

Avoids displaying warning about git-annex restage needing to be run in
situations where it does not.

Closing a handle flushes it anyway, so no need for an explict flush. The
handle does get closed twice, but that's fine, the second one does nothing.

Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
Joey Hess 2022-09-30 14:02:31 -04:00
parent 8d8f7ee884
commit 49ee07f93d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 9 additions and 1 deletions

View file

@ -178,3 +178,5 @@ Git Annex is great. I use it several times a week with my multigigabyte backups,
Big thanks, Joey!
[[!meta author=jkniiv]]
> [[fixed|done]] --[[Joey]]