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