simplify
This commit is contained in:
parent
11994ebb3d
commit
59fe0b29a6
3 changed files with 3 additions and 8 deletions
|
@ -39,9 +39,7 @@ seek = [withNumCopies start]
|
|||
start :: CommandStartAttrFile
|
||||
start (file, attr) = notBareRepo $ isAnnexed file $ \(key, backend) -> do
|
||||
showStart "fsck" file
|
||||
next $ perform key file backend numcopies
|
||||
where
|
||||
numcopies = readMaybe attr :: Maybe Int
|
||||
next $ perform key file backend $ readMaybe attr
|
||||
|
||||
perform :: Key -> FilePath -> Backend Annex -> Maybe Int -> CommandPerform
|
||||
perform key file backend numcopies = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue