fix warning

I don't think the NoConfigValue case ever actually occurs here.
This commit is contained in:
Joey Hess 2020-04-15 13:04:00 -04:00
parent 9f17242f29
commit 0e4c92503e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -64,7 +64,10 @@ parseGlobalConfig = parseMapLog configkeyparser valueparser
valueparser = ConfigValue <$> A.takeByteString valueparser = ConfigValue <$> A.takeByteString
loadGlobalConfig :: Annex (M.Map ConfigKey ConfigValue) loadGlobalConfig :: Annex (M.Map ConfigKey ConfigValue)
loadGlobalConfig = M.filter (\(ConfigValue v) -> not (S.null v)) loadGlobalConfig = M.filter nonempty
. simpleMap . simpleMap
. parseGlobalConfig . parseGlobalConfig
<$> Annex.Branch.get configLog <$> Annex.Branch.get configLog
where
nonempty (ConfigValue v) = not (S.null v)
nonempty NoConfigValue = True