From e37bf6351fbb5ee8b858add55ce4588fca32f569 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 19 Mar 2025 14:46:24 -0400 Subject: [PATCH] avoid shadowing warning --- Remote/Compute.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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