remove only case

This commit is contained in:
Joey Hess 2019-08-26 13:28:28 -04:00
parent 2fd27c6df5
commit 1e02360283
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -48,12 +48,11 @@ linkOrCopy :: Key -> FilePath -> FilePath -> Maybe FileMode -> Annex (Maybe Link
linkOrCopy = linkOrCopy' (annexThin <$> Annex.getGitConfig)
linkOrCopy' :: Annex Bool -> Key -> FilePath -> FilePath -> Maybe FileMode -> Annex (Maybe LinkedOrCopied)
linkOrCopy' canhardlink key src dest destmode
| otherwise = catchDefaultIO Nothing $
ifM canhardlink
( hardlink
, copy =<< getstat
)
linkOrCopy' canhardlink key src dest destmode = catchDefaultIO Nothing $
ifM canhardlink
( hardlink
, copy =<< getstat
)
where
hardlink = do
s <- getstat