From 639a6df58a0fee44b7da313aa48edd7092da1bc3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 5 Dec 2017 13:11:03 -0400 Subject: [PATCH] fix windows build --- Annex/Content.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annex/Content.hs b/Annex/Content.hs index 986f673f6b..768b2a9dc3 100644 --- a/Annex/Content.hs +++ b/Annex/Content.hs @@ -170,7 +170,7 @@ inAnnexSafe key = inAnnex' (fromMaybe True) (Just False) go key checkdirect contentfile lockfile = ifM (liftIO $ doesFileExist contentfile) ( modifyContent lockfile $ liftIO $ - lockShared >>= \case + lockShared lockfile >>= \case Nothing -> return is_locked Just lockhandle -> do dropLock lockhandle