avoid shadowing warning

This commit is contained in:
Joey Hess 2025-03-19 14:46:24 -04:00
parent b158e067c0
commit e37bf6351f
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -814,11 +814,11 @@ checkKey rs k = do
-- Usually this will already be populated with all remotes,
-- otherwise this compute remote would not be used. Check
-- just in case, to avoid trustMap' caching bad inputs.
rs <- Annex.getState Annex.remotes
if null rs
remotelist <- Annex.getState Annex.remotes
if null remotelist
then error "internal"
else S.fromList . M.keys . M.filter (== DeadTrusted)
<$> trustMap' rs
<$> trustMap' remotelist
getcomputeset = S.fromList . M.keys . M.filter isComputeRemote'
<$> remoteConfigMap