summaryrefslogtreecommitdiff
path: root/Command/FromKey.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/FromKey.hs
parentb400984ddf9aeb24c3d67e87cfeb29470618636c (diff)
refactor some boilerplate
Diffstat (limited to 'Command/FromKey.hs')
-rw-r--r--Command/FromKey.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/FromKey.hs b/Command/FromKey.hs
index eadaa13e1..ca61094eb 100644
--- a/Command/FromKey.hs
+++ b/Command/FromKey.hs
@@ -34,7 +34,7 @@ start file = notBareRepo $ do
unless inbackend $ error $
"key ("++keyName key++") is not present in backend"
showStart "fromkey" file
- return $ Just $ perform file
+ next $ perform file
perform :: FilePath -> CommandPerform
perform file = do
@@ -42,7 +42,7 @@ perform file = do
link <- calcGitLink file key
liftIO $ createDirectoryIfMissing True (parentDir file)
liftIO $ createSymbolicLink link file
- return $ Just $ cleanup file
+ next $ cleanup file
cleanup :: FilePath -> CommandCleanup
cleanup file = do