fix warning
I don't think the NoConfigValue case ever actually occurs here.
This commit is contained in:
parent
9f17242f29
commit
0e4c92503e
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ parseGlobalConfig = parseMapLog configkeyparser valueparser
|
|||
valueparser = ConfigValue <$> A.takeByteString
|
||||
|
||||
loadGlobalConfig :: Annex (M.Map ConfigKey ConfigValue)
|
||||
loadGlobalConfig = M.filter (\(ConfigValue v) -> not (S.null v))
|
||||
loadGlobalConfig = M.filter nonempty
|
||||
. simpleMap
|
||||
. parseGlobalConfig
|
||||
<$> Annex.Branch.get configLog
|
||||
where
|
||||
nonempty (ConfigValue v) = not (S.null v)
|
||||
nonempty NoConfigValue = True
|
||||
|
|
Loading…
Reference in a new issue