diff options
author | Joey Hess <joey@kitenet.net> | 2011-05-15 02:02:46 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-05-15 02:02:46 -0400 |
commit | 56bc3e95cabb85e5f23e30b453f90438c33efbb8 (patch) | |
tree | c13ac69cfc2b5ba9582aa5c1ebd427bc0d337b16 /Command/Unlock.hs | |
parent | b400984ddf9aeb24c3d67e87cfeb29470618636c (diff) |
refactor some boilerplate
Diffstat (limited to 'Command/Unlock.hs')
-rw-r--r-- | Command/Unlock.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Command/Unlock.hs b/Command/Unlock.hs index bf593e1e9..d65579ec7 100644 --- a/Command/Unlock.hs +++ b/Command/Unlock.hs @@ -34,7 +34,7 @@ seek = [withFilesInGit start] start :: CommandStartString start file = isAnnexed file $ \(key, _) -> do showStart "unlock" file - return $ Just $ perform file key + next $ perform file key perform :: FilePath -> Key -> CommandPerform perform dest key = do @@ -52,5 +52,5 @@ perform dest key = do if ok then do liftIO $ allowWrite dest - return $ Just $ return True + next $ return True else error "copy failed!" |