inverted logic
This commit is contained in:
parent
252b2e92b0
commit
95e748cbd4
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ seek :: [CommandSeek]
|
||||||
seek = [withKeys start]
|
seek = [withKeys start]
|
||||||
|
|
||||||
start :: Key -> CommandStart
|
start :: Key -> CommandStart
|
||||||
start key = stopUnless (not <$> inAnnex key) $ do
|
start key = stopUnless (inAnnex key) $ do
|
||||||
unlessM (Annex.getState Annex.force) $
|
unlessM (Annex.getState Annex.force) $
|
||||||
error "dropkey can cause data loss; use --force if you're sure you want to do this"
|
error "dropkey can cause data loss; use --force if you're sure you want to do this"
|
||||||
showStart "dropkey" (show key)
|
showStart "dropkey" (show key)
|
||||||
|
|
|
@ -108,7 +108,7 @@ toPerform dest move key = moveLock move key $ do
|
||||||
fromStart :: Remote.Remote Annex -> Bool -> FilePath -> Key -> CommandStart
|
fromStart :: Remote.Remote Annex -> Bool -> FilePath -> Key -> CommandStart
|
||||||
fromStart src move file key
|
fromStart src move file key
|
||||||
| move = go
|
| move = go
|
||||||
| otherwise = stopUnless (inAnnex key) go
|
| otherwise = stopUnless (not <$> inAnnex key) go
|
||||||
where
|
where
|
||||||
go = stopUnless (fromOk src key) $ do
|
go = stopUnless (fromOk src key) $ do
|
||||||
showMoveAction move file
|
showMoveAction move file
|
||||||
|
|
Loading…
Reference in a new issue