summaryrefslogtreecommitdiff
path: root/Annex/Content
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-01-18 13:16:16 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-01-18 13:16:16 -0400
commit2b3dd51a31b919dd3866cd885bcfc96b9b0e4897 (patch)
tree13f4b97a55f5dd0fe2aaf51805dfe2d4ee971032 /Annex/Content
parenta1ff8da9a48cc91faa29e0300b8afd7d1f8f6182 (diff)
allow lazy reading of map contents
Don't explicitly close; hGetContents will close when read is done.
Diffstat (limited to 'Annex/Content')
-rw-r--r--Annex/Content/Direct.hs2
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. -}