cleanup
This commit is contained in:
parent
1530eac312
commit
e09dd6f306
3 changed files with 51 additions and 59 deletions
|
@ -31,9 +31,6 @@ toOpt = CommandCheck 2 $ do
|
|||
v <- Annex.getState Annex.toremote
|
||||
unless (v == Nothing) $ error "cannot use --to with this command"
|
||||
|
||||
checkCommand :: Command -> Annex ()
|
||||
checkCommand Command { cmdcheck = c } = sequence_ $ map runCheck c
|
||||
|
||||
dontCheck :: CommandCheck -> Command -> Command
|
||||
dontCheck check cmd = mutateCheck cmd $ \c -> filter (/= check) c
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue