remove only case
This commit is contained in:
parent
2fd27c6df5
commit
1e02360283
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue