avoid shadowing warning
authorJoey Hess <joeyh@joeyh.name>
Wed, 19 Mar 2025 18:46:24 +0000 (14:46 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 19 Mar 2025 18:46:24 +0000 (14:46 -0400)
Remote/Compute.hs

index 140eb9bd943fa43e15a3f298487acdf0b36a850f..60a0fc2ea82ac77d419960492633c2d01c82ee95 100644 (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