RawFilePath optimisation

This commit is contained in:
Joey Hess 2022-06-22 16:08:26 -04:00
parent e5c418b99c
commit f80ec74128
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -641,7 +641,7 @@ removeAnnex (ContentRemovalLock key) = withObjectLoc key $ \file ->
where where
-- Check associated pointer file for modifications, and reset if -- Check associated pointer file for modifications, and reset if
-- it's unmodified. -- it's unmodified.
resetpointer file = unlessM (liftIO $ isSymbolicLink <$> getSymbolicLinkStatus (fromRawFilePath file)) $ resetpointer file = unlessM (liftIO $ isSymbolicLink <$> R.getSymbolicLinkStatus file) $
ifM (isUnmodified key file) ifM (isUnmodified key file)
( adjustedBranchRefresh (AssociatedFile (Just file)) $ ( adjustedBranchRefresh (AssociatedFile (Just file)) $
depopulatePointerFile key file depopulatePointerFile key file