squelch warning

This commit is contained in:
Joey Hess 2013-01-05 15:09:43 -04:00
parent 7c7da72cfd
commit 15ecce2bfd

View file

@ -60,8 +60,8 @@ lockDown file = do
tmp <- fromRepo gitAnnexTmpDir
createAnnexDirectory tmp
liftIO $ do
(tmpfile, handle) <- openTempFile tmp (takeFileName file)
hClose handle
(tmpfile, h) <- openTempFile tmp (takeFileName file)
hClose h
nukeFile tmpfile
createLink file tmpfile
return $ KeySource { keyFilename = file , contentLocation = tmpfile }