mirror of
https://github.com/jfmengels/elm-review.git
synced 2025-01-08 18:56:40 +03:00
Speed up removeErrorPhantomTypeFromVisitor
This commit is contained in:
parent
d43f3b5a17
commit
32b38f3e82
@ -1935,7 +1935,7 @@ withDataExtractor dataExtractor (ProjectRuleSchema schema) =
|
||||
removeErrorPhantomTypeFromVisitor : (element -> projectContext -> ( List (Error b), projectContext )) -> (element -> projectContext -> ( List (Error {}), projectContext ))
|
||||
removeErrorPhantomTypeFromVisitor function element projectContext =
|
||||
function element projectContext
|
||||
|> Tuple.mapFirst (List.map removeErrorPhantomType)
|
||||
|> Tuple.mapFirst (ListExtra.orderIndependentMap removeErrorPhantomType)
|
||||
|
||||
|
||||
{-| Allows the rule to have access to the context of the modules imported by the
|
||||
|
Loading…
Reference in New Issue
Block a user