Skip to content

Commit

Permalink
style(renamer): 🚨 Remove unused variable binding
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Jun 1, 2024
1 parent d22a9b5 commit bbd9441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elara/Rename.hs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ n's module name is in the import list of m
n is exposed by the import
-}
isImportedBy :: Module 'Desugared -> VarRef Name -> Bool
isImportedBy m (Local _) = True -- we always assume a local variable exists, even if it doesn't. this condition is checked elsewhere
isImportedBy _ (Local _) = True -- we always assume a local variable exists, even if it doesn't. this condition is checked elsewhere
isImportedBy m (Global (Located _ (Qualified n' nameMod))) = do
(nameMod == m ^. _Unwrapped % unlocated % field' @"name" % unlocated) || isImportedBy' m n' nameMod
where
Expand Down

0 comments on commit bbd9441

Please sign in to comment.