better var name
This commit is contained in:
parent
5c96411314
commit
81984e60ac
1 changed files with 2 additions and 2 deletions
|
@ -29,12 +29,12 @@ seek = [withNumCopies start]
|
||||||
{- Indicates a file's content is not wanted anymore, and should be removed
|
{- Indicates a file's content is not wanted anymore, and should be removed
|
||||||
- if it's safe to do so. -}
|
- if it's safe to do so. -}
|
||||||
start :: CommandStartAttrFile
|
start :: CommandStartAttrFile
|
||||||
start (file, attr) = isAnnexed file $ \(key, _) -> do
|
start (file, numcopies) = isAnnexed file $ \(key, _) -> do
|
||||||
present <- inAnnex key
|
present <- inAnnex key
|
||||||
if present
|
if present
|
||||||
then do
|
then do
|
||||||
showStart "drop" file
|
showStart "drop" file
|
||||||
next $ perform key $ readMaybe attr
|
next $ perform key $ readMaybe numcopies
|
||||||
else stop
|
else stop
|
||||||
|
|
||||||
perform :: Key -> Maybe Int -> CommandPerform
|
perform :: Key -> Maybe Int -> CommandPerform
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue