import Data.Default in Common
This commit is contained in:
parent
0fd5f257d0
commit
e8c376e0ad
19 changed files with 48 additions and 54 deletions
|
@ -110,10 +110,10 @@ inAnnexSafe key = inAnnex' (fromMaybe False) (Just False) go key
|
|||
( checkOr is_unlocked lockfile
|
||||
, return is_missing
|
||||
)
|
||||
checkOr def lockfile = do
|
||||
checkOr d lockfile = do
|
||||
v <- checkLocked lockfile
|
||||
return $ case v of
|
||||
Nothing -> def
|
||||
Nothing -> d
|
||||
Just True -> is_locked
|
||||
Just False -> is_unlocked
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue