summaryrefslogtreecommitdiff
path: root/Command/Lock.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/Lock.hs
parentb400984ddf9aeb24c3d67e87cfeb29470618636c (diff)
refactor some boilerplate
Diffstat (limited to 'Command/Lock.hs')
-rw-r--r--Command/Lock.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Lock.hs b/Command/Lock.hs
index cdbc56019..1ae488227 100644
--- a/Command/Lock.hs
+++ b/Command/Lock.hs
@@ -26,7 +26,7 @@ seek = [withFilesUnlocked start]
start :: CommandStartBackendFile
start (file, _) = do
showStart "lock" file
- return $ Just $ perform file
+ next $ perform file
perform :: FilePath -> CommandPerform
perform file = do
@@ -36,4 +36,4 @@ perform file = do
liftIO $ Git.run g "reset" [Params "-q --", File file]
-- checkout the symlink
liftIO $ Git.run g "checkout" [Param "--", File file]
- return $ Just $ return True -- no cleanup needed
+ next $ return True -- no cleanup needed