improve readability and fix a warning
This commit is contained in:
parent
8b248d84fb
commit
9de5506f19
1 changed files with 4 additions and 3 deletions
|
@ -72,10 +72,11 @@ checkMatcher :: FileMatcher Annex -> Maybe Key -> AssociatedFile -> AssumeNotPre
|
|||
checkMatcher matcher mkey afile notpresent notconfigured d
|
||||
| isEmpty matcher = notconfigured
|
||||
| otherwise = case (mkey, afile) of
|
||||
(mkey, AssociatedFile (Just file)) ->
|
||||
(_, AssociatedFile (Just file)) ->
|
||||
go =<< fileMatchInfo file mkey
|
||||
(Just key, _) -> go (MatchingKey key afile)
|
||||
_ -> d
|
||||
(Just key, AssociatedFile Nothing) ->
|
||||
go (MatchingKey key afile)
|
||||
(Nothing, _) -> d
|
||||
where
|
||||
go mi = checkMatcher' matcher mi notpresent
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue