inverted logic
This commit is contained in:
parent
eab4470440
commit
6a45f4cdaf
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ sanityCheckerStartupThread startupdelay = namedThreadUnchecked "SanityCheckerSta
|
|||
|
||||
{- A corrupt index file can prevent the assistant from working at
|
||||
- all, so detect and repair. -}
|
||||
ifM (liftAnnex $ inRepo $ checkIndex S.empty)
|
||||
ifM (not <$> liftAnnex (inRepo (checkIndex S.empty)))
|
||||
( do
|
||||
debug ["corrupt index file found at startup; removing and restaging"]
|
||||
liftAnnex $ inRepo nukeIndex
|
||||
|
|
Loading…
Add table
Reference in a new issue