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:
parent
8d8f7ee884
commit
49ee07f93d
3 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue