Skip to content

Commit f243736

Browse files
committed
Fix key for target
1 parent 18a2335 commit f243736

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/NoUnused/CustomTypeConstructors.elm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -667,12 +667,12 @@ expressionVisitor node moduleContext =
667667
fixes : Dict ( ModuleNameAsString, ConstructorName ) (Dict ModuleNameAsString (List Fix))
668668
fixes =
669669
Set.foldl
670-
(\(( moduleName, _ ) as key) dict ->
670+
(\key dict ->
671671
Dict.update
672672
key
673673
(\existingValues ->
674674
updateToAdd
675-
moduleName
675+
moduleContext.currentModuleName
676676
(Fix.replaceRangeBy (Node.range node) replacement)
677677
(Maybe.withDefault Dict.empty existingValues)
678678
|> Just
@@ -716,12 +716,12 @@ expressionVisitor node moduleContext =
716716
fixes : Dict ( ModuleNameAsString, ConstructorName ) (Dict ModuleNameAsString (List Fix))
717717
fixes =
718718
Set.foldl
719-
(\(( moduleName, _ ) as key) dict ->
719+
(\key dict ->
720720
Dict.update
721721
key
722722
(\existingValues ->
723723
updateToAdd
724-
moduleName
724+
moduleContext.currentModuleName
725725
(Fix.replaceRangeBy (Node.range node) replacement)
726726
(Maybe.withDefault Dict.empty existingValues)
727727
|> Just
@@ -772,7 +772,7 @@ caseBranchEnterVisitor caseExpression ( casePattern, body ) moduleContext =
772772
fixes : Dict ( ModuleNameAsString, ConstructorName ) (Dict ModuleNameAsString (List Fix))
773773
fixes =
774774
Set.foldl
775-
(\(( moduleName, _ ) as key) acc ->
775+
(\key acc ->
776776
let
777777
fix : Fix
778778
fix =
@@ -785,7 +785,7 @@ caseBranchEnterVisitor caseExpression ( casePattern, body ) moduleContext =
785785
key
786786
(\existingValues ->
787787
updateToAdd
788-
moduleName
788+
moduleContext.currentModuleName
789789
fix
790790
(Maybe.withDefault Dict.empty existingValues)
791791
|> Just

0 commit comments

Comments
 (0)