refactor some boilerplate

This commit is contained in:
Joey Hess 2011-05-15 02:02:46 -04:00
parent b400984ddf
commit 56bc3e95ca
31 changed files with 93 additions and 86 deletions

View file

@ -24,9 +24,9 @@ start :: CommandStartString
start name = notBareRepo $ do
showStart "semitrust" name
u <- Remote.nameToUUID name
return $ Just $ perform u
next $ perform u
perform :: UUID -> CommandPerform
perform uuid = do
trustSet uuid SemiTrusted
return $ Just $ return True
next $ return True