From: Joey Hess Date: Wed, 19 Mar 2025 18:46:24 +0000 (-0400) Subject: avoid shadowing warning X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~6^2~66 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e37bf6351fbb5ee8b858add55ce4588fca32f569;p=git-annex.git avoid shadowing warning --- diff --git a/Remote/Compute.hs b/Remote/Compute.hs index 140eb9bd94..60a0fc2ea8 100644 --- a/Remote/Compute.hs +++ b/Remote/Compute.hs @@ -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