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

@ -160,7 +160,6 @@ refreshIndex repo feeder = bracket
go (Just h, _, _, pid) = do
let closer = do
hFlush h
hClose h
forceSuccessProcess p pid
feeder $ \case