refactor some boilerplate
This commit is contained in:
parent
b400984ddf
commit
56bc3e95ca
31 changed files with 93 additions and 86 deletions
|
@ -37,7 +37,7 @@ seek = [withNothing start]
|
|||
start :: CommandStartNothing
|
||||
start = notBareRepo $ do
|
||||
showStart "unused" ""
|
||||
return $ Just perform
|
||||
next perform
|
||||
|
||||
perform :: CommandPerform
|
||||
perform = do
|
||||
|
@ -47,7 +47,7 @@ perform = do
|
|||
r <- Remote.byName name
|
||||
checkRemoteUnused r
|
||||
_ -> checkUnused
|
||||
return $ Just $ return True
|
||||
next $ return True
|
||||
|
||||
checkUnused :: Annex ()
|
||||
checkUnused = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue