remove redundant test

populatePointerFile checks the same thing
This commit is contained in:
Joey Hess 2018-10-25 14:31:45 -04:00
parent 0ae11e92c5
commit f2a4db724c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -144,7 +144,6 @@ emitPointer = putStr . formatPointer
-- the pointer copy. It will then be populated with the content.
getMoveRaceRecovery :: Key -> FilePath -> Annex ()
getMoveRaceRecovery k file = void $ tryNonAsync $
liftIO (isPointerFile file) >>= \k' -> when (Just k == k') $
whenM (inAnnex k) $ do
obj <- calcRepo (gitAnnexLocation k)
-- Cannot restage because git add is running and has