summaryrefslogtreecommitdiff
path: root/Command/Unused.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-05-15 02:02:46 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-05-15 02:02:46 -0400
commit56bc3e95cabb85e5f23e30b453f90438c33efbb8 (patch)
treec13ac69cfc2b5ba9582aa5c1ebd427bc0d337b16 /Command/Unused.hs
parentb400984ddf9aeb24c3d67e87cfeb29470618636c (diff)
refactor some boilerplate
Diffstat (limited to 'Command/Unused.hs')
-rw-r--r--Command/Unused.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Unused.hs b/Command/Unused.hs
index 67f10581d..7570dfe90 100644
--- a/Command/Unused.hs
+++ b/Command/Unused.hs
@@ -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