diff options
author | Joey Hess <joey@kitenet.net> | 2013-01-05 15:09:43 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-01-05 15:09:43 -0400 |
commit | 71d1effb4f2b6224780afea37994713a6169baf8 (patch) | |
tree | c4a988b7c6a383d361ceb84a842abef7a6b138d6 | |
parent | d9de052e5490b28ca5faf3d6d42c2d2a1c4af855 (diff) |
squelch warning
-rw-r--r-- | Command/Add.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Add.hs b/Command/Add.hs index 7b2d5fd30..823d8f569 100644 --- a/Command/Add.hs +++ b/Command/Add.hs @@ -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 } |