simplified a bunch of Maybe handling
This commit is contained in:
parent
efa7f54405
commit
cad0e1c8b7
19 changed files with 81 additions and 140 deletions
|
@ -68,9 +68,8 @@ gen r u c = do
|
|||
bupSetup :: UUID -> RemoteConfig -> Annex RemoteConfig
|
||||
bupSetup u c = do
|
||||
-- verify configuration is sane
|
||||
let buprepo = case M.lookup "buprepo" c of
|
||||
Nothing -> error "Specify buprepo="
|
||||
Just r -> r
|
||||
let buprepo = maybe (error "Specify buprepo=") id $
|
||||
M.lookup "buprepo" c
|
||||
c' <- encryptionSetup c
|
||||
|
||||
-- bup init will create the repository.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue