fix some compile warnings left in yesterday
at least 2 could have caused a crash in some circumstances This commit was sponsored by Brett Eisenberg on Patreon.
This commit is contained in:
parent
ace02f41b0
commit
d81f549385
3 changed files with 7 additions and 4 deletions
|
@ -26,11 +26,13 @@ addPreferredContentLimit a = do
|
|||
nfn <- introspectPreferredRequiredContent matchNeedsFileName Nothing
|
||||
nfc <- introspectPreferredRequiredContent matchNeedsFileContent Nothing
|
||||
nk <- introspectPreferredRequiredContent matchNeedsKey Nothing
|
||||
nl <- introspectPreferredRequiredContent matchNeedsLocationLog Nothing
|
||||
addLimit $ Right $ MatchFiles
|
||||
{ matchAction = const a
|
||||
, matchNeedsFileName = nfn
|
||||
, matchNeedsFileContent = nfc
|
||||
, matchNeedsKey = nk
|
||||
, matchNeedsLocationLog = nl
|
||||
}
|
||||
|
||||
checkWant :: (AssociatedFile -> Annex Bool) -> MatchInfo -> Annex Bool
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue