diff options
author | Joey Hess <joey@kitenet.net> | 2013-01-18 13:16:16 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-01-18 13:16:16 -0400 |
commit | 2b3dd51a31b919dd3866cd885bcfc96b9b0e4897 (patch) | |
tree | 13f4b97a55f5dd0fe2aaf51805dfe2d4ee971032 /Annex | |
parent | a1ff8da9a48cc91faa29e0300b8afd7d1f8f6182 (diff) |
allow lazy reading of map contents
Don't explicitly close; hGetContents will close when read is done.
Diffstat (limited to 'Annex')
-rw-r--r-- | Annex/Content/Direct.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Content/Direct.hs b/Annex/Content/Direct.hs index 889c27231..9862b5dfe 100644 --- a/Annex/Content/Direct.hs +++ b/Annex/Content/Direct.hs @@ -44,7 +44,7 @@ associatedFilesRelative key = do liftIO $ catchDefaultIO [] $ do h <- openFile mapping ReadMode fileEncoding h - hClose h `after` (lines <$> hGetContents h) + lines <$> hGetContents h {- Changes the associated files information for a key, applying a - transformation to the list. Returns new associatedFiles value. -} |